Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4448763

FtpClient hangs if no response received.

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.3.0
    • core-libs
    • generic
    • generic



      Name: krC82822 Date: 04/20/2001


      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)


      It would be useful if FtpClient had a facility to set the SO_TIMEOUT, so e.g.
      if a data connection is not received after a "PORT" command, it will not wait
      for ever. This would make it easier to write robust code built around FTP.

      This would need to be done in 3 places: OpenServer(host,port) for the
      serverSocket, openDataConnection for the portSocket and openDataConnection for
      the dataSocket.
      (Review ID: 121112)
      ======================================================================

            jccollet Jean-Christophe Collet (Inactive)
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: