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,22 +2351,19 @@ static void httpd_poll(void)
|
||||
|
||||
if (conn->state == DONE) {
|
||||
/* clean out finished connection */
|
||||
if (conn->conn_close)
|
||||
{
|
||||
if (conn->conn_close) {
|
||||
LIST_REMOVE(conn, entries);
|
||||
free_connection(conn);
|
||||
free(conn);
|
||||
break;
|
||||
}
|
||||
/* else */
|
||||
} else {
|
||||
recycle_connection(conn);
|
||||
|
||||
/* and go right back to recv_request without going through
|
||||
* select() again.
|
||||
*/
|
||||
poll_recv_request(conn);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user