Details
-
Bug
-
Resolution: Fixed
-
P3
-
1.4.2_01
-
b01
-
generic
-
generic
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2188786 | 6-pool | Dmeetry Degrave | P4 | Closed | Cannot Reproduce | |
JDK-2188785 | 5.0-pool | Dmeetry Degrave | P4 | Closed | Cannot Reproduce |
Description
HttpsURLConnection doesn't set the DefaultReadTimeout and DeafultConnectTimeout properties. Where as user can set these properties in the HttpURLConnectio. This behaviour is different from the Http based application.
java version "1.4.1_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01)
Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode)
FULL OPERATING SYSTEM VERSION :
SunOS bem 5.8 Generic_108528-17 sun4u sparc SUNW,Netra-T4
ADDITIONAL OPERATING SYSTEMS :
Windows 2000 Professional
A DESCRIPTION OF THE PROBLEM :
The sun.net.client.defaultConnectTimeout and
sun.net.client.defaultReadTimeout timeouts do not appear to
work when using HTTPS connections.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
System.setProperty("sun.net.client.defaultConnectTimeout",
"1000");
System.setProperty("sun.net.client.defaultReadTimeout",
"2000");
/* Ensure connection will timeout before running */
URL mysite = new URL("https://www.verisign.com");
URLConnection mysite = url.openConnection();
---------- END SOURCE ----------
java version "1.4.1_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01)
Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode)
FULL OPERATING SYSTEM VERSION :
SunOS bem 5.8 Generic_108528-17 sun4u sparc SUNW,Netra-T4
ADDITIONAL OPERATING SYSTEMS :
Windows 2000 Professional
A DESCRIPTION OF THE PROBLEM :
The sun.net.client.defaultConnectTimeout and
sun.net.client.defaultReadTimeout timeouts do not appear to
work when using HTTPS connections.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
System.setProperty("sun.net.client.defaultConnectTimeout",
"1000");
System.setProperty("sun.net.client.defaultReadTimeout",
"2000");
/* Ensure connection will timeout before running */
URL mysite = new URL("https://www.verisign.com");
URLConnection mysite = url.openConnection();
---------- END SOURCE ----------
Attachments
Issue Links
- backported by
-
JDK-2188785 sun.net.client.defaultConnectTimeout defaultReadTimeout should work with HttpsURLConnection
- Closed
-
JDK-2188786 sun.net.client.defaultConnectTimeout defaultReadTimeout should work with HttpsURLConnection
- Closed
- relates to
-
JDK-6614957 HttpsURLConnection not using the set SSLSocketFactory for creating all its Sockets
- Resolved
-
JDK-4811482 sun.net.client.defaultConnectTimeout should work with HttpsURLConnection
- Closed