Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.8k views
in Java FTP by (180 points)
I get a socket connection error every now and then (not always) when trying to quit(). I also tried with quitImmediately() and that seems to work.
According to the api documentation, quitImmediately() terminates ongoing transfers. I cannot see that there are any transfers going on, so I consider using quitImmediately() .

* The connection reset exception, is that thrown from quit() if there are any transfers going on?
* Is there any way to check at runtime if there are any transfers in progress?

TIA
java_bear

1 Answer

0 votes
by (162k points)
If you don't quit() after your transfers, the server may time out your connection. In that case you'll get this error.

Categories

...