mirror of
https://github.com/hoytech/strfry.git
synced 2025-06-19 01:34:57 +00:00
If a client disconnects before its pending EVENT write messages have been processed, drop those messages instead of trying to write them
This commit is contained in:
@ -71,6 +71,7 @@ void RelayServer::runIngester(ThreadPool<MsgIngester>::Thread &thr) {
|
||||
}
|
||||
} else if (auto msg = std::get_if<MsgIngester::CloseConn>(&newMsg.msg)) {
|
||||
auto connId = msg->connId;
|
||||
tpWriter.dispatch(connId, MsgWriter{MsgWriter::CloseConn{connId}});
|
||||
tpReqWorker.dispatch(connId, MsgReqWorker{MsgReqWorker::CloseConn{connId}});
|
||||
tpNegentropy.dispatch(connId, MsgNegentropy{MsgNegentropy::CloseConn{connId}});
|
||||
}
|
||||
|
Reference in New Issue
Block a user