commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Noah Levitt (JIRA)" <j...@apache.org>
Subject [jira] [Created] (NET-399) ftp data connection does not use connectTimeout
Date Mon, 04 Apr 2011 20:07:05 GMT
ftp data connection does not use connectTimeout
-----------------------------------------------

                 Key: NET-399
                 URL: https://issues.apache.org/jira/browse/NET-399
             Project: Commons Net
          Issue Type: Bug
          Components: FTP
    Affects Versions: 2.2, 2.0
            Reporter: Noah Levitt


Deep inside the lengthy method org.apache.commons.net.ftp.FTPClient._openDataConnection_(int,
String) we find this line

            socket = _socketFactory_.createSocket(__passiveHost, __passivePort);

Which I believe does not set the connect timeout when opening the connection. If the line
were changed to the following, it would use the connectTimeout property. 

            socket = connect(__passiveHost, __passivePort)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message