Fix AsyncSocket::handleRead
Summary:
If openssl has buffered data read from the socket, we might not get a
read event on the socket. So, we must schedule a readCallback to ensure
before exiting from AsyncSocket::handleRead if we have exhausted the
maxReadsPerEvent_ limit.
Test Plan: -- modifying existing test to test this corner case.
Reviewed By: davejwatson@fb.com
Subscribers: net-systems@, trunkagent, folly-diffs@, yfeldblum, chalfant
FB internal diff:
D2102601
Tasks:
7168699
Signature: t1:
2102601:
1432837605:
82e72a2a1875c08c9c1e8e831796c9c90df927fa