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/os/unix/ngx_freebsd_sendfile_chain.c | |
parent | 369145cef1971e4273dc59340689c2d96f84d18a (diff) | |
download | nginx-67f450d7bc2b847f07ad302fa3fd6fa46da784f0.tar.gz nginx-67f450d7bc2b847f07ad302fa3fd6fa46da784f0.zip |
nginx-0.0.3-2004-06-01-10:04:46 import
Diffstat (limited to 'src/os/unix/ngx_freebsd_sendfile_chain.c')
-rw-r--r-- | src/os/unix/ngx_freebsd_sendfile_chain.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/os/unix/ngx_freebsd_sendfile_chain.c b/src/os/unix/ngx_freebsd_sendfile_chain.c index 694ea2226..abc3d19b5 100644 --- a/src/os/unix/ngx_freebsd_sendfile_chain.c +++ b/src/os/unix/ngx_freebsd_sendfile_chain.c @@ -162,7 +162,9 @@ ngx_chain_t *ngx_freebsd_sendfile_chain(ngx_connection_t *c, ngx_chain_t *in) if (file) { - if (ngx_freebsd_use_tcp_nopush && c->tcp_nopush == 0) { + if (ngx_freebsd_use_tcp_nopush + && c->tcp_nopush == NGX_TCP_NOPUSH_UNSET) + { if (ngx_tcp_nopush(c->fd) == NGX_ERROR) { err = ngx_errno; @@ -180,7 +182,8 @@ ngx_chain_t *ngx_freebsd_sendfile_chain(ngx_connection_t *c, ngx_chain_t *in) } } else { - c->tcp_nopush = 1; + c->tcp_nopush = NGX_TCP_NOPUSH_SET; + ngx_log_debug0(NGX_LOG_DEBUG_EVENT, c->log, 0, "tcp_nopush"); } |