Skip to content

Commit

Permalink
Fix bug #5144 (#5150)
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFreeman authored Sep 14, 2023
1 parent e212b58 commit d882aaf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/server/reactor_process.cc
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,11 @@ static int ReactorProcess_onClose(Reactor *reactor, Event *event) {
if (conn->close_queued) {
return Server::close_connection(reactor, event->socket);
} else {
/**
* peer_closed indicates that the client has closed the connection
* and the connection is no longer available.
*/
conn->peer_closed = 1;
return serv->notify(conn, SW_SERVER_EVENT_CLOSE) ? SW_OK : SW_ERR;
}
} else {
Expand Down

0 comments on commit d882aaf

Please sign in to comment.