United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7199862 Make sure that a connection is still alive when retrieved from KeepAliveCache in certain cases
JDK-7199862 : Make sure that a connection is still alive when retrieved from KeepAliveCache in certain cases

Details
Type:
Bug
Submit Date:
2012-09-20
Status:
Closed
Updated Date:
2014-02-05
Project Name:
JDK
Resolved Date:
2012-09-27
Component:
core-libs
OS:
windows
Sub-Component:
java.net
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
8
Fixed Versions:

Related Reports
Backport:
Backport:
Backport:
Relates:
Relates:

Sub Tasks

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
URL:   http://hg.openjdk.java.net/jdk8/tl/jdk/rev/11a5da68673c
User:  robm
Date:  2012-09-27 21:32:52 +0000

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

                                     
2012-10-12
Verified with test from JDK-8009650 - IsAvailable.java.
                                     
2013-08-02



Hardware and Software, Engineered to Work Together