commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Elcock <a...@elcock.org>
Subject Re: [VFS] FTPClientWrapper Broken Pipe
Date Thu, 01 Sep 2005 17:06:50 GMT
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: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message