comparison src/http/ngx_http_write_filter_module.c @ 330:5e3b425174f6 NGINX_0_6_9

nginx 0.6.9 *) Bugfix: a worker process may got caught in an endless loop, if the HTTPS protocol was used; bug appeared in 0.6.7. *) Bugfix: if server listened on two addresses or ports and trailing wildcard was used, then nginx did not run. *) Bugfix: the "ip_hash" directive might incorrectly mark servers as down. *) Bugfix: nginx could not be built on amd64; bug appeared in 0.6.8.
author Igor Sysoev <http://sysoev.ru>
date Tue, 28 Aug 2007 00:00:00 +0400
parents 390b8f8309d6
children e10168d6e371
comparison
equal deleted inserted replaced
329:f2f8dc3e7933 330:5e3b425174f6
249 c->write->delayed = 1; 249 c->write->delayed = 1;
250 ngx_add_timer(c->write, (ngx_msec_t) (sent * 1000 / r->limit_rate + 1)); 250 ngx_add_timer(c->write, (ngx_msec_t) (sent * 1000 / r->limit_rate + 1));
251 251
252 } else if (c->write->ready 252 } else if (c->write->ready
253 && clcf->sendfile_max_chunk 253 && clcf->sendfile_max_chunk
254 && c->sent - sent >= clcf->sendfile_max_chunk - 2 * ngx_pagesize) 254 && (size_t) (c->sent - sent)
255 >= clcf->sendfile_max_chunk - 2 * ngx_pagesize)
255 { 256 {
256 c->write->delayed = 1; 257 c->write->delayed = 1;
257 ngx_add_timer(c->write, 1); 258 ngx_add_timer(c->write, 1);
258 } 259 }
259 260