Skip to content

Commit

Permalink
Increased the default "connection_pool_size" on 64-bit platforms.
Browse files Browse the repository at this point in the history
The previous default of 256 bytes isn't enough and results in two
allocations on each accepted connection, which is suboptimal.
  • Loading branch information
VBart committed Nov 30, 2015
1 parent 62ae954 commit a89548a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http/ngx_http_core_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a89548a

Please sign in to comment.