AsyncSocket
authorDave Watson <davejwatson@fb.com>
Fri, 26 Sep 2014 20:49:11 +0000 (13:49 -0700)
committerdcsommer <dcsommer@fb.com>
Wed, 29 Oct 2014 23:05:43 +0000 (16:05 -0700)
commit95084352f2064da765af36bb42158d9a9f99797f
tree94af84468e8a3dfafd3c4b52e488df202f1d73c0
parenteec32a760c6597c7053fac69d9c844b9ff422677
AsyncSocket

Summary:
Move async socket to folly.

Changes:
* Made an AsyncSocketException type instead of TTransportException: Some of the exceptions didn't fit nicely in to std::exception types (like TIMED_OUT).  There are some wrappers in thrift/lib/cpp/async to convert back to TTransportException, so all existing code still compiles.
* Moved read/write callbacks out of AsyncTransport: filters are going to want to do the read/write stuff separately (see revproxy/tunnel/filters, and discussions in D1483148).

Test Plan:
fbconfig -r thrift; fbmake runtests
contbuild should catch everything else - exception types shouldn't change for existing code

Reviewed By: dcsommer@fb.com

Subscribers: mshneer, folly-diffs@, trunkagent, doug, alandau, bmatheny, njormrod, fugalh, jsedgwick

FB internal diff: D1587625
folly/Makefile.am
folly/io/async/AsyncSocket.cpp [new file with mode: 0644]
folly/io/async/AsyncSocket.h [new file with mode: 0644]
folly/io/async/AsyncSocketException.h [new file with mode: 0644]
folly/io/async/AsyncTransport.h [new file with mode: 0644]