mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Mann (JIRA)" <>
Subject [jira] [Created] (MESOS-6802) SSL socket can lose bytes in the case of EOF
Date Thu, 15 Dec 2016 17:52:58 GMT
Greg Mann created MESOS-6802:

             Summary: SSL socket can lose bytes in the case of EOF
                 Key: MESOS-6802
             Project: Mesos
          Issue Type: Bug
          Components: libprocess
            Reporter: Greg Mann

During recent work on SSL-enabled tests in libprocess (MESOS-5966), we discovered a bug in
{{LibeventSSLSocketImpl}}, wherein the socket can either fail to receive an EOF, or lose data
when an EOF is received.

The {{LibeventSSLSocketImpl::event_callback(short events)}} method immediately sets any pending
{{RecvRequest}}'s promise to zero upon receipt of an EOF. However, at the time the promise
is set, there may actually be data waiting to be read by libevent. Upon receipt of an EOF,
we should attempt to read the socket's bufferevent first to ensure that we aren't losing any
data previously received by the socket.

This message was sent by Atlassian JIRA

View raw message