Add a per-socket buffer callback
authorYang Chi <yangchi@fb.com>
Mon, 14 Dec 2015 23:33:49 +0000 (15:33 -0800)
committerfacebook-github-bot-1 <folly-bot@fb.com>
Tue, 15 Dec 2015 00:20:25 +0000 (16:20 -0800)
commit4a46ffa2a182e6d70c57abd97188f7698dfd7a50
treec09a8529e370f35d3a8808a3d40e6d25e2ae3fdd
parent76fcf3897e2600b0dbd719d84f0143148caf107b
Add a per-socket buffer callback

Summary: this is way simpler than D2623385 + D2709121. There will be a followup diff to clean the existing per-write call BufferCallback. The new one is on per-socket basis, much straightforward. I will only setup this in HTTPUpstreamSession.

Reviewed By: afrind

Differential Revision: D2723493

fb-gh-sync-id: 6b1c21a719281b9693330b6a4074f7149d7c342a
folly/io/async/AsyncSocket.cpp
folly/io/async/AsyncSocket.h
folly/io/async/AsyncTransport.h
folly/io/async/test/AsyncSocketTest.h
folly/io/async/test/AsyncSocketTest2.cpp