Instrument connections
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user