diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2017-04-02 14:32:28 +0300 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2017-04-02 14:32:28 +0300 |
commit | 96e4e84ce273664d0ee43c5c5b7d14efa6f86d39 (patch) | |
tree | ced1313613d1fbfe5036106c62a0e5377f6175c8 /src/http/modules/perl/nginx.xs | |
parent | fae6878f202b13f0ffe39f75fe19fa15e179e9d5 (diff) | |
download | nginx-96e4e84ce273664d0ee43c5c5b7d14efa6f86d39.tar.gz nginx-96e4e84ce273664d0ee43c5c5b7d14efa6f86d39.zip |
Perl: fixed delaying subrequests.
Much like in limit_req, use the wev->delayed flag to ensure proper handling
and interoperability with limit_rate.
Diffstat (limited to 'src/http/modules/perl/nginx.xs')
-rw-r--r-- | src/http/modules/perl/nginx.xs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/modules/perl/nginx.xs b/src/http/modules/perl/nginx.xs index 6716620af..cca64da37 100644 --- a/src/http/modules/perl/nginx.xs +++ b/src/http/modules/perl/nginx.xs @@ -1001,6 +1001,7 @@ sleep(r, sleep, next) ctx->next = SvRV(ST(2)); + r->connection->write->delayed = 1; ngx_add_timer(r->connection->write, sleep); r->write_event_handler = ngx_http_perl_sleep_handler; |