Skip to content

Commit

Permalink
refine comment
Browse files Browse the repository at this point in the history
Signed-off-by: Antonio Vicente <avd@google.com>
  • Loading branch information
antoniovicente committed Oct 27, 2020
1 parent 7d7f311 commit 6647411
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/common/network/connection_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,8 @@ void ConnectionImpl::onReadReady() {
// 2) The consumer of connection data called readDisable(true), and instead of reading from the
// socket we simply need to dispatch already read data.
if (read_disable_count_ != 0) {
// Do not clear want_read_ when returning early, skipping the transport socket doRead call.
// Do not clear want_read_ when returning early; the early return skips the transport socket
// doRead call.
if (latched_dispatch_buffered_data && consumerWantsToRead()) {
onRead(read_buffer_.length());
}
Expand Down

0 comments on commit 6647411

Please sign in to comment.