aboutsummaryrefslogtreecommitdiff
path: root/src/http/modules/perl/ngx_http_perl_module.c
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2017-04-02 14:32:26 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2017-04-02 14:32:26 +0300
commitfae6878f202b13f0ffe39f75fe19fa15e179e9d5 (patch)
tree35e8d9641b7b244c4ba861501c42d36647146007 /src/http/modules/perl/ngx_http_perl_module.c
parent679bd07b42f6abde6ab0554653585d8e153e5c02 (diff)
downloadnginx-fae6878f202b13f0ffe39f75fe19fa15e179e9d5.tar.gz
nginx-fae6878f202b13f0ffe39f75fe19fa15e179e9d5.zip
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.
Diffstat (limited to 'src/http/modules/perl/ngx_http_perl_module.c')
0 files changed, 0 insertions, 0 deletions