The official NGINX Open Source repository.
Go to file
Maxim Dounin fae6878f20 Limit req: fixed delaying subrequests.
Since limit_req uses connection's write event to delay request processing,
it can conflict with timers in other subrequests.  In particular, even
if applied to an active subrequest, it can break things if wev->delayed
is already set (due to limit_rate or sendfile_max_chunk), since after
limit_req finishes the wev->delayed flag will be set and no timer will be
active.

Fix is to use the wev->delayed flag in limit_req as well.  This ensures that
wev->delayed won't be set after limit_req finishes, and also ensures that
limit_req's timers will be properly handled by other subrequests if the one
delayed by limit_req is not active.
2017-04-02 14:32:26 +03:00
auto Configure: fixed --without_http. 2017-03-16 20:38:31 +03:00
conf Added the REQUEST_SCHEME parameter. 2015-06-05 22:23:26 +03:00
contrib Contrib: vim syntax, update 3rd party module directives. 2017-03-01 23:41:39 +08:00
docs nginx-1.11.12-RELEASE 2017-03-24 18:05:05 +03:00
misc Added HTTP/2 to win32 builds. 2017-03-21 17:28:15 +03:00
src Limit req: fixed delaying subrequests. 2017-04-02 14:32:26 +03:00
.hgtags release-1.11.12 tag 2017-03-24 18:05:06 +03:00