Skip to content

Commit

Permalink
Fixes MAISTRA-1299: fix ASSERT failure and infinite loop when attempt…
Browse files Browse the repository at this point in the history
…ing to unset readDisable state on a closed connection, part 2 (maistra#11)
  • Loading branch information
Dmitri Dolguikh authored Mar 26, 2020
1 parent a939c3c commit 13d2925
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions source/common/network/connection_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -293,10 +293,6 @@ void ConnectionImpl::enableHalfClose(bool enabled) {
void ConnectionImpl::readDisable(bool disable) {
ASSERT(state() == State::Open);
ASSERT(file_event_ != nullptr);
if (state() != State::Open || file_event_ == nullptr) {
// If readDisable is called on a closed connection in error, do not crash.
return;
}

ENVOY_CONN_LOG(trace, "readDisable: enabled={} disable={} state={}", *this, read_enabled_,
disable, static_cast<int>(state()));
Expand Down

0 comments on commit 13d2925

Please sign in to comment.