comparison 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
comparison
equal deleted inserted replaced
75:869b10be682f 76:6127d7075471
869 ep->temp_file->log = p->log; 869 ep->temp_file->log = p->log;
870 870
871 ep->number = 10; 871 ep->number = 10;
872 ep->random = 5; 872 ep->random = 5;
873 873
874 ep->max_temp_size = 6000; 874 ep->max_temp_size = p->lcf->max_temp_file_size;
875 ep->temp_file_warn = "an upstream response is buffered " 875 ep->temp_file_warn = "an upstream response is buffered "
876 "to a temporary file"; 876 "to a temporary file";
877 877
878 p->event_proxy = ep; 878 p->event_proxy = ep;
879 879
1761 conf->conn_pool_size = 16384; 1761 conf->conn_pool_size = 16384;
1762 conf->connect_timeout = 10000; 1762 conf->connect_timeout = 10000;
1763 conf->send_timeout = 10000; 1763 conf->send_timeout = 10000;
1764 conf->read_timeout = 10000; 1764 conf->read_timeout = 10000;
1765 conf->header_size = 1024; 1765 conf->header_size = 1024;
1766
1767 #if 0
1766 conf->block_size = 4096; 1768 conf->block_size = 4096;
1767 conf->max_block_size = 4096 * 3; 1769 conf->max_block_size = 4096 * 3;
1768 conf->file_block_size = 4096; 1770 conf->max_temp_file_size = 4096 * 5;
1771 conf->file_block_size = 4096 * 2;
1772 #else
1773 conf->block_size = 2048;
1774 conf->max_block_size = 4096 * 6;
1775 conf->max_temp_file_size = 4096 * 5;
1776 conf->file_block_size = 4096 * 5;
1777 #endif
1769 1778
1770 ngx_test_null(conf->temp_path, ngx_pcalloc(pool, sizeof(ngx_path_t)), NULL); 1779 ngx_test_null(conf->temp_path, ngx_pcalloc(pool, sizeof(ngx_path_t)), NULL);
1771 1780
1772 conf->temp_path->name.data = "temp"; 1781 conf->temp_path->name.data = "temp";
1773 conf->temp_path->name.len = 4; 1782 conf->temp_path->name.len = 4;