Issues
#35182 had 1 case where we flag a client for disconnect where we do not log the reason.
#35829 introduced the somewhat poorly named non-const HTTPRemoteClient::MaybeDisconnect(). It also lacks testing.
The control-flow in MaybeDisconnect()/ShouldDisconnect() is somewhat complex. #35829 (review)
Commits solving these issues in same order
- http: Add log message for remaining case where we set
HTTPRemoteClient::m_disconnect = true - refactor: Rename
MaybeDisconnect()toShouldDisconnect()and make itconst - test: Add test for behavior of
ShouldDisconnect() - refactor: Flatten control flow in
ShouldDisconnect()