Add MSG_NOSIGNAL to AsyncSSLSocket
authorSubodh Iyengar <subodh@fb.com>
Tue, 9 Aug 2016 00:55:10 +0000 (17:55 -0700)
committerFacebook Github Bot 2 <facebook-github-bot-2-bot@fb.com>
Tue, 9 Aug 2016 01:08:36 +0000 (18:08 -0700)
commit6b554b1ec498e1f487426b3ec5bcbff618db1dc6
treef1af5846ed526227d338f18d0badb33978ca4cc8
parent218a45f5830c9245b8ccfab3c389b56bf74db730
Add MSG_NOSIGNAL to AsyncSSLSocket

Summary:
We are definitely not prepared to handle
SIGPIPEs, so add MSG_NOSIGNAL to sendmsg
of AsyncSSLSocket.

This is a problem which exists in openssl
as well which calls send with flags = 0.
We recently made a change to move the send
into our control, so we can now supply the
flag

Reviewed By: yfeldblum

Differential Revision: D3686679

fbshipit-source-id: ff8fe662e62923c25876bdfd516352639505dca6
folly/io/async/AsyncSSLSocket.cpp