Commit 09bcbb11 authored by Dan Melnic's avatar Dan Melnic Committed by Facebook GitHub Bot

Call scheduleImmediateRead() outside of the loop

Summary: Call scheduleImmediateRead() outside of the loop

Reviewed By: simpkins, kevin-vigor

Differential Revision: D33981511

fbshipit-source-id: d71cb9ac3f1f5eebae82195d5c93a2a90e80a636
parent 1c49e380
......@@ -2981,13 +2981,13 @@ void AsyncSocket::handleRead() noexcept {
case ReadCode::READ_DONE:
return;
};
}
if (readCallback_ && eventBase_ == originalEventBase) {
// We might still have data in the socket.
// (e.g. see comment in AsyncSSLSocket::checkForImmediateRead)
scheduleImmediateRead();
}
}
}
/**
......
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