Summary:
the current implementation had problems with scheduling reads and writes and
it would sometimes get stuck when transfering large chunks of data
here I am restructuring the code to look more like the one in HTTPSession
session flow control is not implemented yet really, it's coming next
Depends on:
D6048238
Reviewed By: afrind
Differential Revision:
D6048238
fbshipit-source-id:
ae601e771154a7f1a669a58a6e05c9e3720e7017
if (inRunningEventBaseThread()) {
runInLoop(std::move(fn));
return true;
-
}
try {