~britco/nginx/master

« back to all changes in this revision

Viewing changes to src/http/ngx_http_write_filter_module.c

Tags: upstream-0.5.33
ImportĀ upstreamĀ versionĀ 0.5.33

Show diffs side-by-side

added added

removed removed

Lines of Context:
249
249
        c->write->delayed = 1;
250
250
        ngx_add_timer(c->write, (ngx_msec_t) (sent * 1000 / r->limit_rate + 1));
251
251
 
252
 
    } else if (c->write->ready && clcf->sendfile_max_chunk) {
 
252
    } else if (c->write->ready
 
253
               && clcf->sendfile_max_chunk
 
254
               && (size_t) (c->sent - sent)
 
255
                                >= clcf->sendfile_max_chunk - 2 * ngx_pagesize)
 
256
    {
253
257
        c->write->delayed = 1;
254
258
        ngx_add_timer(c->write, 1);
255
259
    }