-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
The HttpClient will sometime wrap HttpTimeoutException / HttpConnectTimeoutException in other type of IOExceptions, such as plain IOException("connection closed") or SSLHandshakeException if the timeout occurred during SSLHandshake.
It could be a better strategy to let the HttpTimeoutException / HttpConnectTimeoutException percolate as the top level exception - and add the other exceptions as suppressed exceptions.
It could be a better strategy to let the HttpTimeoutException / HttpConnectTimeoutException percolate as the top level exception - and add the other exceptions as suppressed exceptions.
- relates to
-
JDK-8369313 java/net/httpclient/TimeoutBasic.java should accept that HttpTimeoutException should be somewhere down the cause chain
-
- Resolved
-