-
Bug
-
Resolution: Fixed
-
P4
-
7, 8, 11, 17
-
b22
-
x86
-
linux
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8321992 | 17.0.11 | Sonia Zaldana Calles | P4 | Resolved | Fixed | b01 |
JDK-8322482 | 17.0.10.0.1-oracle | Johny Jose | P4 | Resolved | Fixed | b01 |
JDK-8321272 | 17.0.9.0.3-oracle | Johny Jose | P4 | Closed | Fixed | b01 |
JDK-8326480 | 11.0.23 | Anton Bobrov | P4 | Resolved | Fixed | b05 |
JDK-8322275 | 11.0.22.0.1-oracle | Johny Jose | P4 | Resolved | Fixed | b01 |
JDK-8320058 | 11.0.21.0.2-oracle | Johny Jose | P4 | Closed | Fixed | b01 |
JDK-8322171 | 8u401 | Johny Jose | P4 | Resolved | Fixed | b31 |
JDK-8320694 | 8u391 | Johny Jose | P4 | Closed | Fixed | b33 |
java version "1.7.0_04"
Java(TM) SE Runtime Environment (build 1.7.0_04-b20)
Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Linux rigi 3.4.7 #1 SMP Tue Aug 7 10:18:59 CEST 2012 x86_64 Intel(R) Xeon(R) CPU E31225 @ 3.10GHz GenuineIntel GNU/Linux
The Bug is OS independent
A DESCRIPTION OF THE PROBLEM :
It is cool that the JDK now (after ~10 years of the first report) finally supports (and is therefore HTTP 1.1 conform) the expectation header. Really cool would it be if it would also work.
If chunking is disabled (the Http-Header contains a Content-Length field) and the Expect: 100-Continue header is set, the connection times-out on a POST request, because nothing is written to the wire and both endpoints awaiting input.
Simple testcases would prevent such bugs. And please test it also with a proxy, authentication and such before you mark this bug as fixed. I don't expect a fix in the next few years, but will not loose my hope...
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
- disable chunking
- enable Expectation
- Send a Post request
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
An answer from the server
ACTUAL -
Timeout
ERROR MESSAGES/STACK TRACES THAT OCCUR :
java.net.SocketTimeoutException: Read timed out
REPRODUCIBILITY :
This bug can be reproduced always.
<snip> - I've attached the testcase to bug report.
- backported by
-
JDK-8321992 HttpURLConnection timeouts with Expect: 100-Continue and no chunking
- Resolved
-
JDK-8322171 HttpURLConnection timeouts with Expect: 100-Continue and no chunking
- Resolved
-
JDK-8322275 HttpURLConnection timeouts with Expect: 100-Continue and no chunking
- Resolved
-
JDK-8322482 HttpURLConnection timeouts with Expect: 100-Continue and no chunking
- Resolved
-
JDK-8326480 HttpURLConnection timeouts with Expect: 100-Continue and no chunking
- Resolved
-
JDK-8320058 HttpURLConnection timeouts with Expect: 100-Continue and no chunking
- Closed
-
JDK-8320694 HttpURLConnection timeouts with Expect: 100-Continue and no chunking
- Closed
-
JDK-8321272 HttpURLConnection timeouts with Expect: 100-Continue and no chunking
- Closed
- relates to
-
JDK-8326549 [11u] jtreg 6.1 not working for test/jdk/java/net/HttpURLConnection/HttpURLConnectionExpectContinueTest.java
- Closed
-
JDK-8326594 Exclude test/jdk/java/net/HttpURLConnection/HttpURLConnectionExpectContinueTest.java
- Closed
-
JDK-8308336 Test java/net/HttpURLConnection/HttpURLConnectionExpectContinueTest.java failed: java.net.BindException: Address already in use
- Resolved
-
JDK-8314164 java/net/HttpURLConnection/HttpURLConnectionExpectContinueTest.java fails intermittently in timeout
- Resolved
-
JDK-8326503 [11u] java/net/HttpURLConnection/HttpURLConnectionExpectContinueTest.java fail because of package org.junit.jupiter.api does not exist
- Resolved
-
JDK-8324209 Check implementation of Expect: 100-continue in the java.net.http.HttpClient
- Resolved
- links to
-
Commit openjdk/jdk11u-dev/1b207cc9
-
Commit openjdk/jdk17u-dev/78839e98
-
Commit openjdk/jdk/4b02956d
-
Review openjdk/jdk11u-dev/2523
-
Review openjdk/jdk17u-dev/2042
-
Review openjdk/jdk/13330