United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
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:
2015-08-20
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:
Relates:
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
Verified with test from JDK-8009650 - IsAvailable.java.
                                     
2013-08-02



Hardware and Software, Engineered to Work Together