Fix ssl timeouts during TFO
authorSubodh Iyengar <subodh@fb.com>
Wed, 17 Aug 2016 04:52:12 +0000 (21:52 -0700)
committerFacebook Github Bot 2 <facebook-github-bot-2-bot@fb.com>
Wed, 17 Aug 2016 04:53:42 +0000 (21:53 -0700)
commit457fa717520ff97cd5dfbbb136cbca6c1d50de12
tree8f427d09ef8bda2993181835b9d823d0afb86aed
parentff5089946944ec49bb253ee422e6fb97215842af
Fix ssl timeouts during TFO

Summary:
Handle handshake timestamps and timeouts when TFO
is used.

If we fallback from TFO to connects, we should unset
the handshake timeout.

When we restart the handshake, we should reset the handshake
timeout and also reset the timestamps of the connection.

Reviewed By: yfeldblum, djwatson

Differential Revision: D3708660

fbshipit-source-id: 960030ca14d9f1cc8cb83059491ceffe6ba8f2ed
folly/io/async/AsyncSSLSocket.cpp
folly/io/async/AsyncSSLSocket.h