[twsocket] Help with stalling ftp client

2012-01-31 Thread Info2004
Hi, I have been using the ftp client component for a couple of years now without a hitch. Until recently. The version is 7.09. I have in the main thread a timer that runs a state machine to control logging in and sending of the files. But recently, the state machine stalls and times out. I

Re: [twsocket] Help with stalling ftp client

2012-01-31 Thread Arno Garrels
Info2004 wrote: PASV 227 Entering Passive Mode (65,212,180,79,238,1) ! Upload Size 91 STOR 17012012_1319010_leeEcersley.csv /debug I guess the server did not send a response to the STOR request after the client successfully established the data connection. Since this is async mode your

Re: [twsocket] OnDataAvailable

2012-01-31 Thread Angus Robertson - Magenta Systems Ltd
If the ClientSocket is closed, the callback for OnDataAvailable is triggered and the missing Bytes are received. This is the common sympton of missing line endings so the event is never called. But this would not explain why it's suddenly happening. I gave up on LineMode a long time ago, and

Re: [twsocket] OnDataAvailable

2012-01-31 Thread Brian Culverwell
I had a similar problem when converting to XE2 from Delphi7 - my TwSocket component was designed to send a header string containing the length of the data to follow, and then I would read that bit to get the actual data - and then process it - but with XE2 being unicode aware - suddenly I had

Re: [twsocket] Help with stalling ftp client

2012-01-31 Thread Info2004
On 31/01/2012 17:41, Arno Garrels wrote: I guess the server did not send a response to the STOR request after the client successfully established the data connection. Since this is async mode your application should have detected and handled a request timeout. Arno, What is the correct way

Re: [twsocket] Help with stalling ftp client

2012-01-31 Thread Info2004
On 31/01/2012 19:05, Brian Culverwell wrote: probably your backend ftp server has been changed to 'binary' type - and when receiving your request to STOR the .csv file - it is issuing a type A to change the mode to ASCII You could force the Type A before issuing your STOR. Brian, Do you

[twsocket] Reading e-mail

2012-01-31 Thread Comune di Bellizzi
I think I have understood little or nothing. We summarize. I have to read e-mail. I read the first post and everything is ok (they are executed properly onheaderend events, onmessageend, ... Step to read any other message (which exists) is not getting any error message but still displays the

Re: [twsocket] Reading e-mail

2012-01-31 Thread François Piette
We summarize. I have to read e-mail. I read the first post and everything is ok (they are executed properly onheaderend events, onmessageend, ... Step to read any other message (which exists) is not getting any error message but still displays the information of the first message and events

Re: [twsocket] Reading e-mail

2012-01-31 Thread Comune di Bellizzi
Imposed on the host, user, password, etc.. I run in order opensync, statsync, listsync, uidlsync, and retrsync quitsync. It 's always the same procedure only changes the value of msgnum course. When you start running with msgnum = 1 is ok. Any value set does not produce results, and then I

Re: [twsocket] Help with stalling ftp client

2012-01-31 Thread Brian Culverwell
before each STOR On Wed, Feb 1, 2012 at 6:27 AM, Info2004 info2...@asamicros.com wrote: On 31/01/2012 19:05, Brian Culverwell wrote: probably your backend ftp server has been changed to 'binary' type - and when receiving your request to STOR the .csv file - it is issuing a type A to change

Re: [twsocket] Help with stalling ftp client

2012-01-31 Thread Info2004
OK. Thanks. On 31/01/2012 21:46, Brian Culverwell wrote: before each STOR On Wed, Feb 1, 2012 at 6:27 AM, Info2004info2...@asamicros.com wrote: On 31/01/2012 19:05, Brian Culverwell wrote: probably your backend ftp server has been changed to 'binary' type - and when receiving your

Re: [twsocket] Help with stalling ftp client

2012-01-31 Thread Arno Garrels
Info2004 wrote: On 31/01/2012 17:41, Arno Garrels wrote: I guess the server did not send a response to the STOR request after the client successfully established the data connection. Since this is async mode your application should have detected and handled a request timeout. Arno,

Re: [twsocket] Help with stalling ftp client

2012-01-31 Thread Arno Garrels
Brian Culverwell wrote: probably your backend ftp server has been changed to 'binary' type - and when receiving your request to STOR the .csv file - it is issuing a type A to change the mode to ASCII A server doesn't issue commands, regardless of which type is active the upload should