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)
======================================================================
- duplicates
-
JDK-4143518 Need ability to set socket options on URLConnection
- Closed