Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-4412

Event overwrited by SSL_READ_READY / COMPLETE in ssl_read_from_net

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 7.1.0
    • SSL
    • None

    Description

      the ssl_read_from_net read data from socket and saved into MIOBuffer.

      It was designed to fill the MIOBuffer as much as possible, even execeed the VIO nbytes setting.

      It will try to call SSLReadBuffer again and again until the MIOBuffer is full or an error returned from SSLReadBuffer. The event will be set to a error status if an error returned from SSLReadBuffer.

      But at the end of ssl_read_from_net, the event will be overwrited to SSL_READ_READY or SSL_READ_COMPLETE depend on vio.ntodo() if this is one success at least in SSLReadBuffer before an error.

      For example:
      The SSLNetVConnection::net_read_io could not get SSL_READ_EOS from ssl_read_from_net and can not close the SSLNetVConnection immediately. Because The event SSL_READ_EOS is overwrited.
      The SSLNetVConnection will be closed by timeout.

      Attachments

        Activity

          People

            shinrich Susan Hinrichs
            oknet Chao Xu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: