Thanks for your response.
I test it but when I cut on the connection with server during a download, a
requestdone triggers but not the sessionclosed.
Does it exist another trigger ?
 
 
Arnold FLUTEAUX wrote:
> Hello,
> 
> 
> 
> Sorry but I've always my problem.
> 
> I launch a GET and I kill the client connection on my FTP server.
> Then, I launch a new connection and I've an error which triggers in
> the OnError : FTP already connected. And in
> overbite.ICS.ftpclient.pas there is this test: 
> 
>     if FConnected and (ftpFctOpen in Fcts) then begin
> 
>         HandleError('FTP component already connected');
> 
>         Exit;
> 
>     end;
> 
> 
 
Arnold,
 
you cannot reconnect until OnSessionClosed has been triggered.
 
> 
> And the problem is that Fconnected is always to True while the
> connection is cut off.
 
If OnSessionClosed does not trigger the control connection is still
alive, means the server did only drop the data connection for some
reason.
 
When OnSessionClosed triggers post a custom window message and in
its message handler reconnect.
 
---
Arno Garrels [TeamICS]
 <http://www.overbyte.be/eng/overbyte/teamics.html>
http://www.overbyte.be/eng/overbyte/teamics.html
 
 
> 
> Please, what can I do ?
> 
> 
> 
> Arnold
-- 
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