Adding the ability to check for whether TCP fast open succeeded on a socket
authorKevin Lewi <klewi@fb.com>
Tue, 12 Jul 2016 20:11:39 +0000 (13:11 -0700)
committerFacebook Github Bot 6 <facebook-github-bot-6-bot@fb.com>
Tue, 12 Jul 2016 20:23:27 +0000 (13:23 -0700)
commit106a2a56bbf2dea08947919539944f582d283a20
treed88eac4303e795190d741458c118a2dd42bf3025
parenta4657e890b21119f661e5418c51e23449bbe2001
Adding the ability to check for whether TCP fast open succeeded on a socket

Summary: Modifies AsyncSocket to check if TFO succeeded. Also added checks to AsyncSocketTest2 to check if TFO succeeded when it should.

Reviewed By: siyengar

Differential Revision: D3540330

fbshipit-source-id: 8a4b64fdb040dea73ba264b8e3dfff4d717fd96f
folly/detail/SocketFastOpen.cpp
folly/detail/SocketFastOpen.h
folly/io/async/AsyncSocket.cpp
folly/io/async/AsyncSocket.h
folly/io/async/test/AsyncSocketTest2.cpp