Re: [twsocket] TFtpCli strange logic

2011-02-12 Thread Arno Garrels
Francois PIETTE wrote: 1) Command Open succeeds. 2) After the server received command User it closes the connection (FIN/ACK). 3) OnSessionClosed triggers with ErrCode 0. 4) OnRequestDone triggers with ErrCode 0 and the status code from previous request. Would you agree that is a bug?

Re: [twsocket] TFtpCli strange logic

2011-02-12 Thread Francois PIETTE
MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be - Original Message - From: Arno Garrels arno.garr...@gmx.de To: ICS support mailing twsocket@elists.org Sent: Saturday, February 12, 2011 10:41 AM Subject: Re: [twsocket] TFtpCli strange logic

Re: [twsocket] TFtpCli strange logic

2011-02-12 Thread Arno Garrels
Subject: Re: [twsocket] TFtpCli strange logic Francois PIETTE wrote: 1) Command Open succeeds. 2) After the server received command User it closes the connection (FIN/ACK). 3) OnSessionClosed triggers with ErrCode 0. 4) OnRequestDone triggers with ErrCode 0 and the status code from previous

Re: [twsocket] TFtpCli strange logic

2011-02-12 Thread Francois PIETTE
GetWinsockOrProxyErrorStr(ErrCode); // == New function, not related to this fix I would name this function GetErrorMsgFromErrorCode since it is a general translation from an error number to a message. IMO, from the name it should be clear what range of error numbers are expected to be

[twsocket] TFtpCli strange logic

2011-02-11 Thread Arno Garrels
Hi, 1) Command Open succeeds. 2) After the server received command User it closes the connection (FIN/ACK). 3) OnSessionClosed triggers with ErrCode 0. 4) OnRequestDone triggers with ErrCode 0 and the status code from previous request. Would you agree that is a bug? -- Arno Garrels -- To