mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
Slightly re-arrange the way recycling of keep-alive connections is
handled. Unfortunately, I'm still seeing horrible performance.
This commit is contained in:
parent
29cbe09d4c
commit
400ee17051
@ -2351,16 +2351,12 @@ static void httpd_poll(void)
|
|||||||
|
|
||||||
if (conn->state == DONE) {
|
if (conn->state == DONE) {
|
||||||
/* clean out finished connection */
|
/* clean out finished connection */
|
||||||
if (conn->conn_close)
|
if (conn->conn_close) {
|
||||||
{
|
|
||||||
LIST_REMOVE(conn, entries);
|
LIST_REMOVE(conn, entries);
|
||||||
free_connection(conn);
|
free_connection(conn);
|
||||||
free(conn);
|
free(conn);
|
||||||
break;
|
} else {
|
||||||
}
|
|
||||||
/* else */
|
|
||||||
recycle_connection(conn);
|
recycle_connection(conn);
|
||||||
|
|
||||||
/* and go right back to recv_request without going through
|
/* and go right back to recv_request without going through
|
||||||
* select() again.
|
* select() again.
|
||||||
*/
|
*/
|
||||||
@ -2368,6 +2364,7 @@ static void httpd_poll(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user