commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hanson Char (JIRA)" <j...@apache.org>
Subject [jira] Commented: (NET-152) FTPClient.retrieveFileStream hangs occassionally
Date Sat, 22 Dec 2007 15:39:43 GMT

    [ https://issues.apache.org/jira/browse/NET-152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12554133
] 

Hanson Char commented on NET-152:
---------------------------------

Do you construct a new instance of FTPClient every time you execute the "retrieveFileStream",
or do you reuse the same instance ?

>Is there any work-around for this issue?

I wonder if constructing a new instance of FTPClient every time to access an FTP server would
help.

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


Mime
View raw message