Bug fix triggered by HTTPS connections
This commit is contained in:
+4
-2
@@ -233,8 +233,10 @@ void chttp_server_process_events(CHTTP_Server *server,
|
||||
|
||||
if (events[i].type == SOCKET_EVENT_DISCONNECT) {
|
||||
|
||||
chttp_server_conn_free(conn); // TODO: what if this was in the ready queue?
|
||||
server->num_conns--;
|
||||
if (conn) {
|
||||
chttp_server_conn_free(conn); // TODO: what if this was in the ready queue?
|
||||
server->num_conns--;
|
||||
}
|
||||
|
||||
} else if (events[i].type == SOCKET_EVENT_CREATION_TIMEOUT) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user