Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-4202

Race in SSL socket shutdown

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.27.0
    • None

    Description

      libprocess Socket shares the ownership of the file descriptor with libevent. In
      the destructor of the libprocess libevent_ssl socket, we call ssl shutdown which
      is executed asynchronously. This causes the libprocess socket file descriptor tobe closed (and possibly reused) when the same file descriptor could be used bylibevent/ssl. Since we set the shutdown options as SSL_RECEIVED_SHUTDOWN, we leave the any write operations to continue with possibly closed file descriptor.

      This issue manifests as junk characters written to the file that has been handled the closed socket file descriptor (by OS) that has the above issue.

      Attachments

        Issue Links

          Activity

            People

              jojy Jojy Varghese
              jojy Jojy Varghese
              Joris Van Remoortere Joris Van Remoortere
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: