[
https://issues.apache.org/jira/browse/HTTPCLIENT-2427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18093425#comment-18093425
]
Arturo Bernal commented on HTTPCLIENT-2427:
-------------------------------------------
[~kwin] Please consider migrating to HttpClient 5.x, where this area has been
redesigned.
> ManagedHttpClientConnection.getSSLSession() throws unexpected
> org.apache.http.impl.conn.ConnectionShutdownException
> -------------------------------------------------------------------------------------------------------------------
>
> Key: HTTPCLIENT-2427
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2427
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Components: HttpClient (classic)
> Affects Versions: 4.5.14
> Reporter: Konrad Windszus
> Priority: Minor
>
> According to the javadoc of
> [https://javadoc.io/static/org.apache.httpcomponents/httpclient/4.5/org/apache/http/conn/ManagedHttpClientConnection.html#getSSLSession()]
> {quote}Returns:the underlying SSL session if available, {{null}} otherwise
> {quote}
>
> However I experienced the following exception when calling
> {{ManagedHttpClientConnection.getSSLSession()}}:
> {code}
> org.apache.http.impl.conn.ConnectionShutdownException
> at
> org.apache.http.impl.conn.CPoolProxy.getValidConnection(CPoolProxy.java:77)
> at
> org.apache.http.impl.conn.CPoolProxy.getSSLSession(CPoolProxy.java:137)
> ....
> {code}
>
> This exception is unexpected, instead just {{null}} should be returned here.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]