diff options
author | Igor Sysoev <igor@sysoev.ru> | 2008-02-16 14:23:14 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2008-02-16 14:23:14 +0000 |
commit | 0a0c02f58b477257dd3e7e7f62274e5671b88e8e (patch) | |
tree | 6f51ea7b1224d4b344062a3b70eb2e51f83df66f /src/http/modules/perl/ngx_http_perl_module.c | |
parent | 5fa1146dd5bfd68bc8212935a509edb6d2d0a4af (diff) | |
download | nginx-0a0c02f58b477257dd3e7e7f62274e5671b88e8e.tar.gz nginx-0a0c02f58b477257dd3e7e7f62274e5671b88e8e.zip |
optimize $r->sleep
Diffstat (limited to 'src/http/modules/perl/ngx_http_perl_module.c')
-rw-r--r-- | src/http/modules/perl/ngx_http_perl_module.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/http/modules/perl/ngx_http_perl_module.c b/src/http/modules/perl/ngx_http_perl_module.c index 07dad1c81..32d996a67 100644 --- a/src/http/modules/perl/ngx_http_perl_module.c +++ b/src/http/modules/perl/ngx_http_perl_module.c @@ -41,7 +41,6 @@ static ngx_int_t ngx_http_perl_ssi(ngx_http_request_t *r, ngx_http_ssi_ctx_t *ssi_ctx, ngx_str_t **params); #endif -static void ngx_http_perl_sleep_handler(ngx_http_request_t *r); static char *ngx_http_perl_init_interpreter(ngx_conf_t *cf, ngx_http_perl_main_conf_t *pmcf); static PerlInterpreter *ngx_http_perl_create_interpreter(ngx_conf_t *cf, @@ -252,12 +251,6 @@ ngx_http_perl_handle_request(ngx_http_request_t *r) ctx->filename.data = NULL; ctx->redirect_uri.len = 0; - if (ctx->sleep) { - ngx_add_timer(r->connection->write, (ngx_msec_t) ctx->sleep); - r->write_event_handler = ngx_http_perl_sleep_handler; - ctx->sleep = 0; - } - if (ctx->done || ctx->next) { return; } @@ -276,7 +269,7 @@ ngx_http_perl_handle_request(ngx_http_request_t *r) } -static void +void ngx_http_perl_sleep_handler(ngx_http_request_t *r) { ngx_event_t *wev; |