Allow a AsyncSocket to be corked the whole time
Summary: Add a new method to cork a socket in a persistent manner, instead of the current on-off manner. This is default to false. The liger part of turning this on will be in a separate diff.
I thought about whether I need to turn cork off based on some criteria to alleviate the perf degradation. The obvious things I can think off is just amount of data written as a threshold, or a timeout. But TCP is doing this already for us, unless we want the data threshold to be less than MSS, or we want the timeout to be less than 200ms. THoughts?
Reviewed By: shikong
Differential Revision:
D2639260
fb-gh-sync-id:
2821f669c9f72d5ac4c33195bb192fc4110ffe9d