Project

General

Profile

Feature #2924 ยป connection_close.patch

helmut, 2019-01-09 07:44

View differences:

src/response.c
/* disable keep-alive if requested */
if (con->request_count > con->conf.max_keep_alive_requests || 0 == con->conf.max_keep_alive_idle) {
con->keep_alive = 0;
/* connection_handle_response_end_state will disable keep_alive later.
* Disabling here already to send Connection: close to the client. */
} else if (con->request.content_length != con->request_content_queue->bytes_in) {
con->keep_alive = 0;
} else {
con->keep_alive_idle = con->conf.max_keep_alive_idle;
}
    (1-1/1)