We had a similar issue which, as you have mentioned below, would occur
"randomly" - sometimes due to firewall settings, sometimes due to active
connection mode, and sometimes reasons that we couldnt trace.
The workaround we applied was to set the timeout in commons-net
for specific number of retries. After the specified retries/timeout
expires, we would make attempts from within our application to reconnect
(disconnect and connect) to the same server and re-initiate the failed
operation.
Thanks,
Deepa
_______________________________________________________
Deepa Rao
WebSphere Adapter Development,
Embassy Golf Links Business Park, C Block, 6th Floor,
India Software Labs, IBM India, Bangalore - 560071.
EGL Extn: 7560 Direct Ph: 91-80-41927560 Cell: 9845820273
"Shashi Anand B (JIRA)" <[EMAIL PROTECTED]>
03/01/2007 07:17 PM
Please respond to
"Jakarta Commons Developers List" <[email protected]>
To
[email protected]
cc
Subject
[jira] Created: (NET-152) FTPClient.retrieveFileStream hangs occassionally
FTPClient.retrieveFileStream hangs occassionally
------------------------------------------------
Key: NET-152
URL: https://issues.apache.org/jira/browse/NET-152
Project: Commons Net
Issue Type: Bug
Affects Versions: 1.4
Environment: Redhat Enterprise Linux 4
Reporter: Shashi Anand B
Occassionally, retrieveFileStream on FTPClient hangs. The thread dump
gives the following trace:
java.net.PlainSocketImpl.socketAccept (native method)
java.net.PlainSocketImpl.accept (PlainSocketImpl.java:353)
java.net.ServerSocket.implAccept (ServerSocket.java:448)
java.net.ServerSocket.accept (ServerSocket.java:419)
org.apache.commons.net.ftp.FTPClient._openDataConnection_(FTPClient.java:502)
org.apache.commons.net.ftp.FTPClient.retrieveFileStream(FTPClient.java:1,342)
This seems to occur randomly. Hence, I have not been able to get any
specific information for further debugging. Is this a known issue? Is
there any work-around for this issue?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]