Skip to content

Commit

Permalink
Fix bug #5144
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFreeman committed Sep 9, 2023
1 parent 2edc4d9 commit 4cecfcf
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 @@ -324,6 +324,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 4cecfcf

Please sign in to comment.