summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/lighttpd/lighttpd/default-chunk-size-8k.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/lighttpd/lighttpd/default-chunk-size-8k.patch')
-rw-r--r--meta/recipes-extended/lighttpd/lighttpd/default-chunk-size-8k.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-extended/lighttpd/lighttpd/default-chunk-size-8k.patch b/meta/recipes-extended/lighttpd/lighttpd/default-chunk-size-8k.patch
new file mode 100644
index 0000000000..fd75ca6e26
--- /dev/null
+++ b/meta/recipes-extended/lighttpd/lighttpd/default-chunk-size-8k.patch
@@ -0,0 +1,35 @@
1From 2e08ee1d404e308f15551277e92b7605ddfa96a8 Mon Sep 17 00:00:00 2001
2From: Glenn Strauss <gstrauss@gluelogic.com>
3Date: Fri, 29 Nov 2019 18:18:52 -0500
4Subject: [PATCH] default chunk size 8k (was 4k)
5
6Upstream-Status: Backport
7Comment: No hunk refreshed
8https://git.lighttpd.net/lighttpd/lighttpd1.4/commit/304e46d4f808c46cbb025edfacf2913a30ce8855
9Signed-off-by: Purushottam Choudhary <Purushottam.Choudhary@kpit.com>
10---
11 src/chunk.c | 4 ++--
12 1 file changed, 2 insertions(+), 2 deletions(-)
13
14diff --git a/src/chunk.c b/src/chunk.c
15index 09dd3f1..133308f 100644
16--- a/src/chunk.c
17+++ b/src/chunk.c
18@@ -25,7 +25,7 @@
19 #define DEFAULT_TEMPFILE_SIZE (1 * 1024 * 1024)
20 #define MAX_TEMPFILE_SIZE (128 * 1024 * 1024)
21
22-static size_t chunk_buf_sz = 4096;
23+static size_t chunk_buf_sz = 8192;
24 static chunk *chunks, *chunks_oversized;
25 static chunk *chunk_buffers;
26 static array *chunkqueue_default_tempdirs = NULL;
27@@ -33,7 +33,7 @@ static off_t chunkqueue_default_tempfile_size = DEFAULT_TEMPFILE_SIZE;
28
29 void chunkqueue_set_chunk_size (size_t sz)
30 {
31- chunk_buf_sz = sz > 0 ? ((sz + 1023) & ~1023uL) : 4096;
32+ chunk_buf_sz = sz > 0 ? ((sz + 1023) & ~1023uL) : 8192;
33 }
34
35 void chunkqueue_set_tempdirs_default_reset (void)