Mercurial > hg > nginx
comparison src/os/unix/ngx_freebsd_sendfile_chain.c @ 344:e366ba5db8f8
nginx-0.0.3-2004-06-01-10:04:46 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 01 Jun 2004 06:04:46 +0000 |
parents | 6bdf858bff8c |
children | 446782c909b3 |
comparison
equal
deleted
inserted
replaced
343:6bdf858bff8c | 344:e366ba5db8f8 |
---|---|
160 | 160 |
161 tail = cl; | 161 tail = cl; |
162 | 162 |
163 if (file) { | 163 if (file) { |
164 | 164 |
165 if (ngx_freebsd_use_tcp_nopush && c->tcp_nopush == 0) { | 165 if (ngx_freebsd_use_tcp_nopush |
166 && c->tcp_nopush == NGX_TCP_NOPUSH_UNSET) | |
167 { | |
166 | 168 |
167 if (ngx_tcp_nopush(c->fd) == NGX_ERROR) { | 169 if (ngx_tcp_nopush(c->fd) == NGX_ERROR) { |
168 err = ngx_errno; | 170 err = ngx_errno; |
169 | 171 |
170 /* | 172 /* |
178 ngx_tcp_nopush_n " failed"); | 180 ngx_tcp_nopush_n " failed"); |
179 return NGX_CHAIN_ERROR; | 181 return NGX_CHAIN_ERROR; |
180 } | 182 } |
181 | 183 |
182 } else { | 184 } else { |
183 c->tcp_nopush = 1; | 185 c->tcp_nopush = NGX_TCP_NOPUSH_SET; |
186 | |
184 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, c->log, 0, | 187 ngx_log_debug0(NGX_LOG_DEBUG_EVENT, c->log, 0, |
185 "tcp_nopush"); | 188 "tcp_nopush"); |
186 } | 189 } |
187 } | 190 } |
188 | 191 |