JDK-7199862 : Make sure that a connection is still alive when retrieved from KeepAliveCache in certain cases
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 8
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: windows
  • CPU: x86
  • Submitted: 2012-09-20
  • Updated: 2022-07-04
  • Resolved: 2012-09-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7 JDK 8
6u38Fixed 7u40Fixed 8 b61Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Description
Unlike most other requests, when the HttpClient is performing a streaming POST the request cannot be retried in case of failure. Generally this shouldn't be an issue in a correctly configured environment, but if there is a discrepency between the servers keep-alive time and the clients (java) then we may run into a situation where we attempt the post over a disconnected connection. We could test that the connection is still alive upon KeepAliveCache retrieval in order to mitigate the problem.

Comments
Verified with test from JDK-8009650 - IsAvailable.java.
02-08-2013

URL: http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/11a5da68673c User: lana Date: 2012-10-12 18:08:25 +0000
12-10-2012

URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/11a5da68673c User: robm Date: 2012-09-27 21:32:52 +0000
27-09-2012