Commit d4f016d5 authored by Luca Niccolini's avatar Luca Niccolini Committed by Facebook Github Bot

rework reads/writes

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
parent 43200974
...@@ -553,7 +553,6 @@ bool EventBase::runInEventBaseThread(Func fn) { ...@@ -553,7 +553,6 @@ bool EventBase::runInEventBaseThread(Func fn) {
if (inRunningEventBaseThread()) { if (inRunningEventBaseThread()) {
runInLoop(std::move(fn)); runInLoop(std::move(fn));
return true; return true;
} }
try { try {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment