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

No timeout in java.net.HttpURLConnection

XMLWordPrintable

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



      Name: nt126004 Date: 11/28/2001


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

      There doesn't seem to be any facility for timing out an HttpURLConnection. You
      should be able to specify the number of milliseconds that you are willing to
      wait for the connection to be established, before taking an alternate course of
      processing (likely through catching an exception).

      I would suggest that the timeout I am requesting, would probably be an optional
      parameter to the openConnection() method.
      (Review ID: 135189)
      ======================================================================

            Unassigned Unassigned
            nthompsosunw Nathanael Thompson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: