diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2004-06-01 06:04:46 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2004-06-01 06:04:46 +0000 |
| commit | 67f450d7bc2b847f07ad302fa3fd6fa46da784f0 (patch) | |
| tree | ad432c07b62f9145f78ba569e9a1ed51a3d41e17 /src/http/modules | |
| parent | 369145cef1971e4273dc59340689c2d96f84d18a (diff) | |
| download | nginx-67f450d7bc2b847f07ad302fa3fd6fa46da784f0.tar.gz nginx-67f450d7bc2b847f07ad302fa3fd6fa46da784f0.tar.bz2 | |
nginx-0.0.3-2004-06-01-10:04:46 import
Diffstat (limited to 'src/http/modules')
| -rw-r--r-- | src/http/modules/ngx_http_gzip_filter.c | 4 | ||||
| -rw-r--r-- | src/http/modules/proxy/ngx_http_proxy_upstream.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/http/modules/ngx_http_gzip_filter.c b/src/http/modules/ngx_http_gzip_filter.c index 4f43f3464..eb9497517 100644 --- a/src/http/modules/ngx_http_gzip_filter.c +++ b/src/http/modules/ngx_http_gzip_filter.c @@ -435,9 +435,9 @@ static int ngx_http_gzip_body_filter(ngx_http_request_t *r, ngx_chain_t *in) } /* - * We preallocate a memory for zlib in one hunk (200K-400K), this + * We preallocate a memory for zlib in one buffer (200K-400K), this * dicreases a number of malloc() and free() calls and also probably - * dicreases a number of syscalls. + * dicreases a number of syscalls (sbrk() or so). * Besides we free() this memory as soon as the gzipping will complete * and do not wait while a whole response will be sent to a client. * diff --git a/src/http/modules/proxy/ngx_http_proxy_upstream.c b/src/http/modules/proxy/ngx_http_proxy_upstream.c index ed25c8e11..643f7fafc 100644 --- a/src/http/modules/proxy/ngx_http_proxy_upstream.c +++ b/src/http/modules/proxy/ngx_http_proxy_upstream.c @@ -701,7 +701,7 @@ static void ngx_http_proxy_send_request(ngx_http_proxy_ctx_t *p) /* rc == NGX_OK */ - if (c->tcp_nopush) { + if (c->tcp_nopush == NGX_TCP_NOPUSH_SET) { if (ngx_tcp_push(c->fd) == NGX_ERROR) { ngx_log_error(NGX_LOG_CRIT, c->log, ngx_socket_errno, @@ -710,7 +710,7 @@ static void ngx_http_proxy_send_request(ngx_http_proxy_ctx_t *p) return; } - c->tcp_nopush = 0; + c->tcp_nopush = NGX_TCP_NOPUSH_UNSET; return; } @@ -1138,7 +1138,7 @@ static void ngx_http_proxy_send_response(ngx_http_proxy_ctx_t *p) return; } - /* TODO: preallocate event_pipe hunks, look "Content-Length" */ + /* TODO: preallocate event_pipe bufs, look "Content-Length" */ rc = ngx_http_send_header(r); |
