Uploaded image for project: 'Axis-C++'
  1. Axis-C++
  2. AXISCPP-1031

SSL_write called with m_sslHandle=null when socket closed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6 Final
    • 1.6 Final
    • Transport (axis3)
    • None
    • Testing with Axis[J] on a jetty server. Server has maxIdleTime=60000 (for testing, but any time could be used). WIndowsXP.

    Description

      When Jetty closes the socket due to maxIdleTime, the next write (from httptransport.cpp, ~line 264) detects the closure and calls HTTPSSLChannel::OpenSSL_Close(), which sets m_sslHandle = NULL. httptransport.cpp, ~line 265 then calls the m_pActiveChannel->writeBytes() again to send the remainder of the packet (without checking if the first write succeded). The null handle causes a crash.

      Attachments

        1. HTTPSSLChannel.hpp
          4 kB
          Nadir K. Amra
        2. HTTPSSLChannel.cpp
          22 kB
          Nadir K. Amra
        3. HTTPSSLChannel.cpp
          22 kB
          Wayne Johnson

        Activity

          People

            Unassigned Unassigned
            wdtj Wayne Johnson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: