hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roland Weber (JIRA)" <j...@apache.org>
Subject [jira] Created: (HTTPCORE-22) connection close fails with SSLSocket
Date Fri, 05 Jan 2007 18:08:27 GMT
connection close fails with SSLSocket 
--------------------------------------

                 Key: HTTPCORE-22
                 URL: https://issues.apache.org/jira/browse/HTTPCORE-22
             Project: HttpComponents Core
          Issue Type: Bug
          Components: HttpCore
    Affects Versions: 4.0-alpha3
         Environment: Linux, SUN JDK 1.50_09 and IBM JDK 1.4.0 J9 2.3
            Reporter: Roland Weber
         Assigned To: Roland Weber
             Fix For: 4.0-alpha4


When closing a connection, output and input streams are shut down explicitly before the socket
itself is closed. IOException get ignored. SSL sockets do not implement the partial shutdown.
They throw an UnsupportedOperationException, which is not ignored.

SUN stack trace:
Exception in thread "main" java.lang.UnsupportedOperationException: The method shutdownOutput()
is not supported in SSLSocket
        at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.shutdownOutput(BaseSSLSocketImpl.java:192)
        at org.apache.http.impl.SocketHttpClientConnection.close(SocketHttpClientConnection.java:151)

IBM stack trace:
Exception in thread "main" java.lang.UnsupportedOperationException: The method shutdownOutput()
is not supported in SSLSocket
        at com.ibm.jsse2.ic.shutdownOutput(ic.java:109)
        at org.apache.http.impl.SocketHttpClientConnection.close(SocketHttpClientConnection.java:151)
        at org.apache.http.examples.conn.OperatorConnectProxy.main(OperatorConnectProxy.java:152)

cheers,
  Roland


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org


Mime
View raw message