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

FTP does not apply timeout to initial responses

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0
    • Component/s: None
    • Labels:
      None

      Description

      As part of connectAction(), the FTP classes read from the control channel.

      However, this is done before the connect() returns, and so the caller has no chance to set a timeout.

      Since the reply is effectively part of the connection, it makes sense to use the connectTimeout (if set) to protect the initial getReply() calls.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sebb Sebb
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: