Mercurial > hg > nginx
changeset 1178:a77f6980de50
rename $r->rflush to $r->flush
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sat, 21 Apr 2007 07:43:23 +0000 |
parents | ff0195dfbe0c |
children | 6e2216ad2c87 |
files | src/http/modules/perl/nginx.pm src/http/modules/perl/nginx.xs |
diffstat | 2 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/perl/nginx.pm +++ b/src/http/modules/perl/nginx.pm @@ -92,6 +92,13 @@ use constant HTTP_GATEWAY_TIME_OUT use constant HTTP_INSUFFICIENT_STORAGE => 507; +sub rflush { + my $r = shift; + + $r->flush; +} + + 1; __END__
--- a/src/http/modules/perl/nginx.xs +++ b/src/http/modules/perl/nginx.xs @@ -681,7 +681,7 @@ sendfile(r, filename, offset = -1, bytes void -rflush(r) +flush(r) CODE: ngx_http_request_t *r; @@ -696,7 +696,7 @@ rflush(r) b->flush = 1; - ngx_log_debug0(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, "$r->rflush"); + ngx_log_debug0(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, "$r->flush"); (void) ngx_http_perl_output(r, b);