Add mechanizm for caching local and peer addresses in AsyncSSLSocket.
authorMaxim Georgiev <maxgeorg@fb.com>
Wed, 27 Jan 2016 21:08:50 +0000 (13:08 -0800)
committerfacebook-github-bot-1 <folly-bot@fb.com>
Wed, 27 Jan 2016 21:20:23 +0000 (13:20 -0800)
commit23e1c2d30b3314f37e0642afb3a84aff7e6b93a0
tree3c0dc0f101b52e1b457c3f3e25236d913ce703ed
parent13f7a671563b4fddc69aa24ba6de4583cf7546ec
Add mechanizm for caching local and peer addresses in AsyncSSLSocket.

Summary: This change adds a flag to AsyncSSLSocket which forces the socket to cache local and remote addresses right after TCP connection is established. Cached address values will be available after the connection is closed. Caching addresses can be halpful in SSL handshake failure investigations.

Reviewed By: yfeldblum

Differential Revision: D2863274

fb-gh-sync-id: d7b415292988c2fb187a80422e8ccbf8ba8ab0e3
folly/io/async/AsyncSSLSocket.cpp
folly/io/async/AsyncSSLSocket.h
folly/io/async/AsyncSocket.cpp
folly/io/async/AsyncSocket.h