summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2015-11-30 16:27:33 +0300
committerValentin Bartenev <vbart@nginx.com>2015-11-30 16:27:33 +0300
commita89548a4e11c1a607493a89e74a9a18feeb32f2c (patch)
treea13895fc0398f03755294e64665c4f79ce8f017e
parent62ae9544fecfe3dcb27c5782092d2e463e0434a3 (diff)
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.
-rw-r--r--src/http/ngx_http_core_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index 7a296083..9946958b 100644
--- 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 *cf, void *parent, void *child)
/* 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,