mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jojy Varghese" <>
Subject Re: Review Request 41253: Changed ownership semantics of ssl connect socket.
Date Mon, 14 Dec 2015 21:27:28 GMT

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

(Updated Dec. 14, 2015, 9:27 p.m.)

Review request for mesos and Joris Van Remoortere.


fixed ownership semantics.

Summary (updated)

Changed ownership semantics of ssl connect socket.

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 solves the above issue by copying(dup) the original file descriptor
and hands over the copy to libevent ssl. The copied descriptor is then managed
by libprocess Socket.

Diffs (updated)

  3rdparty/libprocess/src/libevent_ssl_socket.hpp 2669b1a1d8f275b89c75d5f12fc696be2b277220

  3rdparty/libprocess/src/libevent_ssl_socket.cpp 55b91dd47bb5bd5e97147d0af91c7899fd42702c



make check.


Jojy Varghese

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message