comparison src/http/modules/proxy/ngx_http_event_proxy_handler.c @ 83:a7e45c45a95c

nginx-0.0.1-2003-04-28-19:06:39 import
author Igor Sysoev <igor@sysoev.ru>
date Mon, 28 Apr 2003 15:06:39 +0000
parents fccdb921e8b8
children fab4cb00fe5b
comparison
equal deleted inserted replaced
82:fccdb921e8b8 83:a7e45c45a95c
899 899
900 ngx_test_null(ep->temp_file, ngx_palloc(r->pool, sizeof(ngx_file_t)), 900 ngx_test_null(ep->temp_file, ngx_palloc(r->pool, sizeof(ngx_file_t)),
901 NGX_ERROR); 901 NGX_ERROR);
902 ep->temp_file->fd = NGX_INVALID_FILE; 902 ep->temp_file->fd = NGX_INVALID_FILE;
903 ep->temp_file->log = p->log; 903 ep->temp_file->log = p->log;
904
905 ep->number = 10;
906 ep->random = 5;
907 904
908 ep->max_temp_file_size = p->lcf->max_temp_file_size; 905 ep->max_temp_file_size = p->lcf->max_temp_file_size;
909 ep->temp_file_write_size = p->lcf->temp_file_write_size; 906 ep->temp_file_write_size = p->lcf->temp_file_write_size;
910 ep->temp_file_warn = "an upstream response is buffered " 907 ep->temp_file_warn = "an upstream response is buffered "
911 "to a temporary file"; 908 "to a temporary file";
1394 break; 1391 break;
1395 } 1392 }
1396 path.len += path.level[i] + 1; 1393 path.len += path.level[i] + 1;
1397 } 1394 }
1398 1395
1399 return ngx_create_temp_file(&file, &path, pool, 123456789, 2, 0); 1396 return ngx_create_temp_file(&file, &path, pool, 0);
1400 } 1397 }
1401 1398
1402 1399
1403 static void *ngx_http_proxy_create_loc_conf(ngx_pool_t *pool) 1400 static void *ngx_http_proxy_create_loc_conf(ngx_pool_t *pool)
1404 { 1401 {