What I did to get round this is to apply a timeout and after a certain
time I "restart" the connection. I hope this works for you to...
Mario Ivankovits wrote:
Hi!
Caused by: java.net.SocketException: Broken pipe
Do you know why this happens? Some sort of ftp timeout?
catch (IOException ie)
{
disconnect();
throw ie;
}
I ask as maybe we should retry the operation here too?
Normally isConnected() should fail then, but it seems that it still
returns true
isConnected() in ftp.java is a logical operation if the connection
"should be" established, not a physical check.
There is also a socketIsConnected which tries to check if the
connections is really alive but it works only with jdk1.4 and up.
Which jdk do you use?
If its 1.4 or up, which commons-net version do you use?
---
Mario
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]