Arnold FLUTEAUX wrote:
> OK I havn't explain very well my problem.
> I don't have unplugged the network cable, I cut off the client
> connection on my FTP server.
> Then an error is triggered in RequestDone with an error. And I know
> that there is a disconnection because I kill the client connection
> but Connected property is always set to True and ControlSocket.state
> is not set to wsClosed.

When the server closes the control connection event OnSessionClosed
should be triggered. When the server aborts the data connection
OnRequestDone triggeres with an error. So as Dan already said the 
OnRequestDone may happen before the control connection is being
closed.  

> In fact, the ICSFTPClient says me that it's always connected to
> server. I hope that my explanations are more clear.

Maybe the server kills running transfers only?
You can assign OnSessionClose and see what happens when the server
kills the client connection. Try that once without having any transfers
running.

---
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html


 
> 
> 
> Dan wrote:
>> Maybe you have only detected the disconnection of the data socket and
>> the
>> control socket will follow that?
> 
> I only wonder why CtrlSocket.State is wsClosed while Connected still
> is TRUE? Usually when you unplug the network cable there's no error
> unless you try to send something or keep-alive packets are being sent
> in the background.
> 
>> I'm not sure how disconnections with
>> the
>> data socket are handled.  Maybe someone else knows?
> 
> RequestDone is triggered with an error.
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to