commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael D. Hirsch" <mhir...@nubridges.com>
Subject Ftp connections timing out
Date Mon, 30 Aug 2004 19:30:19 GMT
I'm using commons-vfs to implement a file transport.  As a simple
example, suppose I try to put a file names foo.xml onto a remote ftp
server once an hour.  I have a single long running application (jboss)
which once an hour moves the file with commons-vfs-1.0.  

The first time it runs, if succeeds.  The next time it runs it fails.

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. 
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


Mime
View raw message