rework reads/writes
authorLuca Niccolini <lniccolini@fb.com>
Wed, 25 Oct 2017 21:28:42 +0000 (14:28 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 25 Oct 2017 21:45:10 +0000 (14:45 -0700)
commitd4f016d523b37264822d044760637b2423b7c1d2
treec9fb0df57ffe25c68dc301fdd82010da620da894
parent43200974b7115bfd55175278607f3892a84b06be
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
folly/io/async/EventBase.cpp