Uploaded image for project: 'Commons Net'
  1. Commons Net
  2. NET-399

ftp data connection does not use connectTimeout

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0, 2.2
    • Fix Version/s: 3.0
    • Component/s: FTP
    • Labels:
      None

      Description

      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)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              nlevitt@gmail.com Noah Levitt
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: