Stop abusing errno
authorSubodh Iyengar <subodh@fb.com>
Thu, 28 Apr 2016 19:10:01 +0000 (12:10 -0700)
committerFacebook Github Bot 0 <facebook-github-bot-0-bot@fb.com>
Thu, 28 Apr 2016 19:20:29 +0000 (12:20 -0700)
commit4708133f8d0c240fcb52e14a6c1c23f4479df1d1
tree08532837ca19a2c4c12f4db73e3ab9564402e7cb
parent38c0b1abdc5e41cbe8bfd24de6edb445d9d0bfdb
Stop abusing errno

Summary:
We abuse errno to propagate exceptions from AsyncSSLSocket.
Stop doing this and propagate exceptions correctly.

This also formats the exception messages better.

Reviewed By: anirudhvr

Differential Revision: D3226808

fb-gh-sync-id: 15a5e67b0332136857e5fb85b1765757e548e040
fbshipit-source-id: 15a5e67b0332136857e5fb85b1765757e548e040
folly/Makefile.am
folly/io/async/AsyncSSLSocket.cpp
folly/io/async/AsyncSSLSocket.h
folly/io/async/AsyncSocket.cpp
folly/io/async/AsyncSocket.h
folly/io/async/ssl/SSLErrors.cpp [new file with mode: 0644]
folly/io/async/ssl/SSLErrors.h [new file with mode: 0644]
folly/io/async/test/AsyncSSLSocketTest.cpp
folly/io/async/test/AsyncSSLSocketTest.h
folly/io/async/test/AsyncSSLSocketWriteTest.cpp
folly/io/async/test/BlockingSocket.h