Refactor HandshakeHelper and add a peeking handshake helper
authorSubodh Iyengar <subodh@fb.com>
Tue, 18 Aug 2015 04:28:08 +0000 (21:28 -0700)
committerfacebook-github-bot-1 <folly-bot@fb.com>
Tue, 18 Aug 2015 05:20:17 +0000 (22:20 -0700)
commit663d3a7b260b9991e519310fb304c71edcff2498
tree06f16355b58f89d79f05048691b976ee567a0e3c
parent942ad3f3218f172b81de85c0d0565ee46a93da3e
Refactor HandshakeHelper and add a peeking handshake helper

Summary: This adds support to Acceptor to be able to switch between
multiple protcols when SSL is being negotiated using MSG_PEEK.

The motivation for this is to be able to try out multiple protocols.

Reviewed By: @djwatson

Differential Revision: D2327946
folly/io/async/AsyncSocket.cpp
folly/io/async/AsyncSocket.h
folly/io/async/test/MockAsyncSSLSocket.h