Konrad Windszus created HTTPCLIENT-2427:
-------------------------------------------

             Summary: 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


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:
{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]

Reply via email to