Properly consume socket events in the server when the socket manager reports them

This commit is contained in:
2025-11-26 15:42:05 +01:00
parent 749aef7c8d
commit 52ee89252c
2 changed files with 7 additions and 3 deletions
+3 -1
View File
@@ -271,7 +271,9 @@ int http_server_process_events(HTTP_Server *server,
socket_set_user(&server->sockets, events[i].handle, conn);
}
http_server_conn_process_events(server, conn);
while (socket_ready(&server->sockets, events[i].handle)
&& conn->state != HTTP_SERVER_CONN_WAIT_STATUS)
http_server_conn_process_events(server, conn);
}
}