This is an automatically generated e-mail. To reply, visit:

(Updated Dec. 14, 2015, 6:13 p.m.)

Review request for mesos and Joris Van Remoortere.


updated description to make the change more understandable.

Bugs: MESOS-3773

Repository: mesos

Description (updated)

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 to be closed (and possibly reused) when the same file descriptor 
could be used by libevent/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 change is to ensure that both send and receivesides of the socket are 
terminated so that we avoid the race condition between libevent continuing with 
writes when the libprocess socket is closed.

An alternate/better solution is to ::dup the libprocess socket's file 
descriptor and then manage its life cycle. This solution is a little more 
involved and needs more time.



Diff: https://reviews.apache.org/r/41253/diff/


make check.


Jojy Varghese

Reply via email to