A lot of updates
This commit is contained in:
@@ -39,7 +39,7 @@ void WebClient::handleMessageWrite(int fd, short, void *) {
|
||||
debugMessage(this->getServerId(), "[{}] Failed to write message (length {}, errno {}, message {}) Disconnecting client.", CLIENT_STR_LOG_PREFIX, written, errno, strerror(errno));
|
||||
}
|
||||
|
||||
this->closeConnection(system_clock::now()); /* close connection in a new thread */
|
||||
this->close_connection(system_clock::now()); /* close connection in a new thread */
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ void WebClient::handleMessageRead(int fd, short, void *) {
|
||||
if(this->readEvent)
|
||||
event_del_noblock(this->readEvent);
|
||||
}
|
||||
self_lock->closeConnection(system_clock::now()); /* direct close, but from another thread */
|
||||
self_lock->close_connection(system_clock::now()); /* direct close, but from another thread */
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user