Mercurial > hg > nginx
comparison src/http/ngx_http_core_module.c @ 6309:ea3ba1ce7014
Increased the default "connection_pool_size" on 64-bit platforms.
The previous default of 256 bytes isn't enough and results in two
allocations on each accepted connection, which is suboptimal.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Mon, 30 Nov 2015 16:27:33 +0300 |
parents | 1063097b22b6 |
children | 1d696c646d81 |
comparison
equal
deleted
inserted
replaced
6308:7e241b36819d | 6309:ea3ba1ce7014 |
---|---|
3501 ngx_http_server_name_t *sn; | 3501 ngx_http_server_name_t *sn; |
3502 | 3502 |
3503 /* TODO: it does not merge, it inits only */ | 3503 /* TODO: it does not merge, it inits only */ |
3504 | 3504 |
3505 ngx_conf_merge_size_value(conf->connection_pool_size, | 3505 ngx_conf_merge_size_value(conf->connection_pool_size, |
3506 prev->connection_pool_size, 256); | 3506 prev->connection_pool_size, NGX_PTR_SIZE * 64); |
3507 ngx_conf_merge_size_value(conf->request_pool_size, | 3507 ngx_conf_merge_size_value(conf->request_pool_size, |
3508 prev->request_pool_size, 4096); | 3508 prev->request_pool_size, 4096); |
3509 ngx_conf_merge_msec_value(conf->client_header_timeout, | 3509 ngx_conf_merge_msec_value(conf->client_header_timeout, |
3510 prev->client_header_timeout, 60000); | 3510 prev->client_header_timeout, 60000); |
3511 ngx_conf_merge_size_value(conf->client_header_buffer_size, | 3511 ngx_conf_merge_size_value(conf->client_header_buffer_size, |