commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rory Winston (JIRA)" <j...@apache.org>
Subject [jira] Commented: (NET-152) FTPClient.retrieveFileStream hangs occassionally
Date Wed, 07 Mar 2007 23:05:24 GMT

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

Rory Winston commented on NET-152:
----------------------------------

The fix to this problem involved a substantial change in the class hierarchy, and the changes
are only availble in the 2.0 branch. There are no plans at present to port any of the major
2.0 changes to the 1.4.x branch. However, if you are desperate for a fix on JDK 1.4.x , and
you have the inclination and energy, you may be able to backport the code to a 1.4.x platform.
The JDK 5+ specific changes as far as I can recall are:

* Some of the regex code is 1.5+ only (possibly just one method, IIRC)
*  Use of generics
*  Some SocketFactory-related code, which could be easily backported

There may be more, but I would think that is the bulk of it. The source code is available
here:

http://people.apache.org/~rwinston/commons-net-2.0/commons-net-2.0.0-SNAPSHOT-src.zip

Or here in SVN (recommended)

http://svn.apache.org/viewvc/jakarta/commons/proper/net/branches/JDK_1_5_BRANCH/



> 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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message