Project: mesos
Issue MESOS-4202: Race in SSL socket shutdown 
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.
Story points: 5