Mercurial > hg > nginx
diff src/http/modules/proxy/ngx_http_event_proxy_handler.c @ 76:6127d7075471
nginx-0.0.1-2003-04-15-19:06:52 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 15 Apr 2003 15:06:52 +0000 |
parents | 869b10be682f |
children | 57c2e18d3572 |
line wrap: on
line diff
--- a/src/http/modules/proxy/ngx_http_event_proxy_handler.c +++ b/src/http/modules/proxy/ngx_http_event_proxy_handler.c @@ -871,7 +871,7 @@ static int ngx_http_proxy_read_upstream_ ep->number = 10; ep->random = 5; - ep->max_temp_size = 6000; + ep->max_temp_size = p->lcf->max_temp_file_size; ep->temp_file_warn = "an upstream response is buffered " "to a temporary file"; @@ -1763,9 +1763,18 @@ static void *ngx_http_proxy_create_loc_c conf->send_timeout = 10000; conf->read_timeout = 10000; conf->header_size = 1024; + +#if 0 conf->block_size = 4096; conf->max_block_size = 4096 * 3; - conf->file_block_size = 4096; + conf->max_temp_file_size = 4096 * 5; + conf->file_block_size = 4096 * 2; +#else + conf->block_size = 2048; + conf->max_block_size = 4096 * 6; + conf->max_temp_file_size = 4096 * 5; + conf->file_block_size = 4096 * 5; +#endif ngx_test_null(conf->temp_path, ngx_pcalloc(pool, sizeof(ngx_path_t)), NULL);