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

ftp data connection does not use connectTimeout

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0, 2.2
    • 3.0
    • FTP
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: