summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2020-10-26 22:26:02 +0300
committerValentin Bartenev <vbart@nginx.com>2020-10-26 22:26:02 +0300
commit434c3228d9bbdc31ff15be470a814344e5f13a4e (patch)
tree913b17a5f7adf679d766a73740a8fa0e2d177a9c
parent84136eb49ded615d7408d656ca9791542a0280a0 (diff)
downloadunit-434c3228d9bbdc31ff15be470a814344e5f13a4e.tar.gz
unit-434c3228d9bbdc31ff15be470a814344e5f13a4e.tar.bz2
Increased request memory pool size.
Previous value was too small, which reduced efficiency of the pool causing a lot of additional allocations even for simple request and response.
-rw-r--r--src/nxt_http_request.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_http_request.c b/src/nxt_http_request.c
index 76fb3427..650c1a89 100644
--- a/src/nxt_http_request.c
+++ b/src/nxt_http_request.c
@@ -220,7 +220,7 @@ nxt_http_request_create(nxt_task_t *task)
nxt_buf_t *last;
nxt_http_request_t *r;
- mp = nxt_mp_create(1024, 128, 256, 32);
+ mp = nxt_mp_create(4096, 128, 512, 32);
if (nxt_slow_path(mp == NULL)) {
return NULL;
}