[PATCH] use signed value when comparing timer with 0 and check lingering_time setting
lanshun zhou
zls.sogou at gmail.com
Sat Apr 27 04:43:21 UTC 2013
In ngx_http_lingering_close_handler
and ngx_http_discarded_request_body_handler, there's risk
that r->lingering_time is smaller than ngx_time(), then comparing timer
which is a unsigned value with zero will never return true. This can cause
long time connection for some kind of requests (For example, lingering_time
is set smaller than lingering_timeout)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20130427/e4a5072b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lingering.patch
Type: application/octet-stream
Size: 1777 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20130427/e4a5072b/attachment.obj>
More information about the nginx-devel
mailing list