# HG changeset patch # User Valentin Bartenev # Date 1448890053 -10800 # Node ID ea3ba1ce70140f1a9a43b218c2b8a5996c91c530 # Parent 7e241b36819dd399c1a476ae43bf8acdad98a249 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. diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -3503,7 +3503,7 @@ ngx_http_core_merge_srv_conf(ngx_conf_t /* TODO: it does not merge, it inits only */ ngx_conf_merge_size_value(conf->connection_pool_size, - prev->connection_pool_size, 256); + prev->connection_pool_size, NGX_PTR_SIZE * 64); ngx_conf_merge_size_value(conf->request_pool_size, prev->request_pool_size, 4096); ngx_conf_merge_msec_value(conf->client_header_timeout,