Add pre received data API to AsyncSSLSocket.
authorKyle Nekritz <knekritz@fb.com>
Mon, 9 Jan 2017 19:51:34 +0000 (11:51 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 9 Jan 2017 20:03:13 +0000 (12:03 -0800)
commit3a033f27c7a96c9b1e6a51adaab03cee660aa027
tree383adbd7c4f6cc1cd424a46479c43dc60d64db75
parentf3c3434c45603ab8a17614f0fc92cbc84ba5beec
Add pre received data API to AsyncSSLSocket.

Summary: This allows something else (ie fizz) to read data from a socket, and then later decide to to accept an SSL connection with OpenSSL by inserting the data it read in front of future reads on the socket.

Reviewed By: anirudhvr

Differential Revision: D4325634

fbshipit-source-id: 05076d2d911fda681b9c4e5d9d3375559293ea35
folly/io/async/AsyncSSLSocket.cpp
folly/io/async/AsyncSSLSocket.h
folly/io/async/test/AsyncSSLSocketTest.cpp