Instrument connections

This commit is contained in:
2025-09-03 13:57:23 -04:00
parent 6d480487da
commit 2fa5b3e960
2 changed files with 48 additions and 0 deletions

View File

@@ -487,6 +487,7 @@ void Server::process_connection_writes(std::unique_ptr<Connection> &conn,
if ((events & EPOLLOUT) || ((events & EPOLLIN) && conn->hasMessages())) {
bool had_messages = conn->hasMessages();
bool error = conn->writeBytes();
if (error) {
conn.reset(); // Connection should be closed
return;