AsyncSSLSocket connect without SSL
authorAaron Balsara <abalsara@fb.com>
Thu, 22 Jun 2017 18:26:36 +0000 (11:26 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 22 Jun 2017 18:37:59 +0000 (11:37 -0700)
commit38ba47c32ffd3416865420c0d505b1a1360a6684
tree1c02406feb5b21f400468c7fa9743b8cca2a7470
parent00ff5917775f9b58a04f74835585cbb32e306289
AsyncSSLSocket connect without SSL

Summary:
Currently when calling connect with AsyncSSLSocket in unencrypted
mode it still attempts to perform a SSL handshake. Add check to not
do SSL. Calling sslConnect will always run the SSL handshake

Reviewed By: jrahman

Differential Revision: D5153456

fbshipit-source-id: 4d9164115be72c8ee76e383535561e3083a327e3
folly/io/async/AsyncSSLSocket.cpp
folly/io/async/test/AsyncSSLSocketTest.cpp