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

Do not call scheduleImmediateRead() if the EVB has changed

Summary: Do not call scheduleImmediateRead() if the EVB has changed

Reviewed By: yfeldblum

Differential Revision: D23234912

fbshipit-source-id: 8394700a53b4e2fa925519271c1c27fc0ce11a85
parent ad89a017
......@@ -2138,7 +2138,8 @@ void AsyncSocket::handleRead() noexcept {
return;
}
}
if (readCallback_ != nullptr) {
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