Klaus Demo nginx / 2f3668b
enable lingering close for pipelined requests patch by Maxim Dounin Igor Sysoev 10 years ago
1 changed file(s) with 5 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
21422142 ngx_http_set_keepalive(r);
21432143 return;
21442144
2145 } else if (r->lingering_close && clcf->lingering_timeout > 0) {
2145 } else if (clcf->lingering_timeout > 0
2146 && (r->lingering_close
2147 || r->header_in->pos < r->header_in->last
2148 || r->connection->read->ready))
2149 {
21462150 ngx_http_set_lingering_close(r);
21472151 return;
21482152 }