Zero out invalid socket ID on disconnect to avoid repeatedly erroring on read/write. (#848)

ms-crash-on-conn-fail
Mooneer Salem 2025-03-21 16:32:08 -07:00 committed by GitHub
parent 6d8f7e5b5d
commit ed24f932ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -471,7 +471,8 @@ void TcpConnectionHandler::disconnectImpl_()
#else
close(socket_);
#endif // defined(WIN32)
socket_ = -1;
onDisconnect_();
if (enableReconnect_)