Uploaded image for project: 'HttpComponents HttpCore'
  1. HttpComponents HttpCore
  2. HTTPCORE-22

connection close fails with SSLSocket

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0-alpha3
    • 4.0-alpha4
    • HttpCore
    • None
    • Linux, SUN JDK 1.50_09 and IBM JDK 1.4.0 J9 2.3

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              rolandw Roland Weber
              rolandw Roland Weber
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: