Fix TFO refused case
authorSubodh Iyengar <subodh@fb.com>
Fri, 25 Nov 2016 05:18:22 +0000 (21:18 -0800)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Fri, 25 Nov 2016 05:53:41 +0000 (21:53 -0800)
commit16dc0043e4d9ad309b6d66565511181732ff0827
tree138ee61cb558ef2b146689215aba63eacf7be497
parent26c4e8d2c5797fa25a3ea03104bef207f13e1cd6
Fix TFO refused case

Summary:
When TFO falls back, it's possible that
the fallback can also error out.

We handle this correctly in AsyncSocket,
however because AsyncSSLSocket is so
inter-twined with AsyncSocket, we missed
the case of error as well.

This changes it so that a connect error on
fallback will cause a handshake error

Differential Revision: D4226477

fbshipit-source-id: c6e845e4a907bfef1e6ad1b4118db47184d047e0
folly/io/async/AsyncSSLSocket.cpp
folly/io/async/AsyncSocket.cpp
folly/io/async/AsyncSocket.h
folly/io/async/test/AsyncSSLSocketTest.cpp
folly/io/async/test/AsyncSocketTest2.cpp
folly/io/async/test/SocketClient.cpp