Mega Search
23.2 Million


Sign Up

Make a donation  
ftp and Connection Closed Gracefully.  
News Group: borland.public.cppbuilder.internet.socket

I do several ftp uploads every 5 min with (Indy10 - latest version from 2 
weeks ago)
Once in a while I get an error during an file upload:  "Connection Closed 
Gracefully"
For some reason - I can't get out of that error.
"if (IdFTP1->Connected())  IdFTP1->Disconnect();"  will raise another 
"Connection Closed Gracefully" error.
IdFTP1  thinks it is still connected. - How can I get out of this ?
thanks,
Roland 



Vote for best question.
Score: 0  # Vote:  0
Date Posted: 29-Dec-2007, at 11:17 AM EST
From: roladdon
 
Re: ftp and Connection Closed Gracefully.  
News Group: borland.public.cppbuilder.internet.socket
"roladdon"  wrote in message
news:47768210$1@newsgroups.borland.com...

> IdFTP1  thinks it is still connected. - How can I get out of this ?

Try destroying the TIdFTP object and reinstantiating it.


Gambit



Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 30-Dec-2007, at 9:52 PM EST
From: Remy Lebeau \(TeamB\)
 
Re: ftp and Connection Closed Gracefully.  
News Group: borland.public.cppbuilder.internet.socket
forgot to say:  that happens after several hrs. staying connected & doing 
the upload every 5 minutes.
I guess - the server times out.

Roland 



Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 29-Dec-2007, at 1:46 PM EST
From: roladdon