summaryrefslogtreecommitdiffstats
path: root/usr.sbin/nginx/src/http/ngx_http_request.c
diff options
context:
space:
mode:
authorrobert <robert@openbsd.org>2011-10-03 17:38:55 +0000
committerrobert <robert@openbsd.org>2011-10-03 17:38:55 +0000
commit8b413955cdde85d1ba40a94ad03676cb45c42249 (patch)
treedf549078432b234c875e28dfb347dfb284645777 /usr.sbin/nginx/src/http/ngx_http_request.c
parentsync after mono module change (diff)
downloadwireguard-openbsd-8b413955cdde85d1ba40a94ad03676cb45c42249.tar.xz
wireguard-openbsd-8b413955cdde85d1ba40a94ad03676cb45c42249.zip
update to nginx-1.0.8 which includes many bugfixes
for a complete list please check the CHANGES file
Diffstat (limited to 'usr.sbin/nginx/src/http/ngx_http_request.c')
-rw-r--r--usr.sbin/nginx/src/http/ngx_http_request.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/nginx/src/http/ngx_http_request.c b/usr.sbin/nginx/src/http/ngx_http_request.c
index d11b13e4add..5e0b8e8915e 100644
--- a/usr.sbin/nginx/src/http/ngx_http_request.c
+++ b/usr.sbin/nginx/src/http/ngx_http_request.c
@@ -2123,11 +2123,11 @@ ngx_http_finalize_connection(ngx_http_request_t *r)
if (r->discard_body) {
r->read_event_handler = ngx_http_discarded_request_body_handler;
+ ngx_add_timer(r->connection->read, clcf->lingering_timeout);
if (r->lingering_time == 0) {
r->lingering_time = ngx_time()
+ (time_t) (clcf->lingering_time / 1000);
- ngx_add_timer(r->connection->read, clcf->lingering_timeout);
}
}