mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
src/nhttpd/yhttpd_core/ywebserver.cpp fix sanitize
This commit is contained in:
@@ -497,13 +497,16 @@ void *WebThread(void *args) {
|
||||
log_level_printf(2,"FD SHOULD CLOSE sock:%d!!!\n",con->sock->get_socket());
|
||||
else
|
||||
ws->addSocketToMasterSet(con->sock->get_socket()); // add to master set
|
||||
#else
|
||||
delete newConn->ySock;
|
||||
#endif
|
||||
if (!con->keep_alive)
|
||||
con->sock->isValid = false;
|
||||
con->sock->handling = false; // socket can be handled by webserver main loop (select) again
|
||||
|
||||
#ifndef Y_CONFIG_FEATURE_KEEP_ALIVE
|
||||
delete newConn->ySock;
|
||||
newConn->ySock = NULL;
|
||||
#endif
|
||||
|
||||
// (4) end thread
|
||||
delete con;
|
||||
int thread_number = newConn->thread_number;
|
||||
|
Reference in New Issue
Block a user