Slightly re-arrange the way recycling of keep-alive connections is

handled.  Unfortunately, I'm still seeing horrible performance.
This commit is contained in:
Emil Mikulic 2006-12-13 13:32:22 +00:00
parent 29cbe09d4c
commit 400ee17051

View File

@ -2351,20 +2351,17 @@ 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 {
recycle_connection(conn);
/* and go right back to recv_request without going through
* select() again.
*/
poll_recv_request(conn);
}
/* else */
recycle_connection(conn);
/* and go right back to recv_request without going through
* select() again.
*/
poll_recv_request(conn);
}
}
}