commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charles Hudak" <charles.hu...@cardionet.com>
Subject RE: Ftp connections timing out
Date Mon, 30 Aug 2004 20:33:48 GMT
> What appears to be going on is that the vfs does not close 
> the ftp connection after the first ftp put.  A few minutes 
> later, the ftp server times out and closes the connection, 
> but vfs doesn't seem to notice. 

I've never used VFS but after a quick poke at the api it looks like you
should be cleaning up after using the VFS by doing:

FtpFileSystem.closeConnection(FTPClient);

> The next time into the code, the same (close) connection is 
> used but since the ftp server has closed that connection it 
> fails (and vfs returns a with a bogus error message).
> 
> What is the proper way to do this?  I feel like I must be 
> mising something obvious.
> 
> Thanks,
> 
> Michael
> 
> ---------------------------------------------------------------------
> 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