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());
|
log_level_printf(2,"FD SHOULD CLOSE sock:%d!!!\n",con->sock->get_socket());
|
||||||
else
|
else
|
||||||
ws->addSocketToMasterSet(con->sock->get_socket()); // add to master set
|
ws->addSocketToMasterSet(con->sock->get_socket()); // add to master set
|
||||||
#else
|
|
||||||
delete newConn->ySock;
|
|
||||||
#endif
|
#endif
|
||||||
if (!con->keep_alive)
|
if (!con->keep_alive)
|
||||||
con->sock->isValid = false;
|
con->sock->isValid = false;
|
||||||
con->sock->handling = false; // socket can be handled by webserver main loop (select) again
|
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
|
// (4) end thread
|
||||||
delete con;
|
delete con;
|
||||||
int thread_number = newConn->thread_number;
|
int thread_number = newConn->thread_number;
|
||||||
|
Reference in New Issue
Block a user