aboutsummaryrefslogtreecommitdiffstats
path: root/community/greenbone-security-assistant/musl-stack-size.patch
blob: 8a64f235579e18bfe2f0603bd65089bdfb4caddf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
diff --git a/gsad/src/gsad.c b/gsad/src/gsad.c
index efdecfc..7d7e13d 100644
--- a/gsad/src/gsad.c
+++ b/gsad/src/gsad.c
@@ -2598,6 +2598,7 @@ start_unix_http_daemon (const char *unix_socket_path,
     0, NULL, NULL, handler, http_handlers, MHD_OPTION_NOTIFY_COMPLETED,
     free_resources, NULL, MHD_OPTION_LISTEN_SOCKET, unix_socket,
     MHD_OPTION_PER_IP_CONNECTION_LIMIT, get_per_ip_connection_limit (),
+    MHD_OPTION_THREAD_STACK_SIZE, (size_t) 4*1024*1024,
     MHD_OPTION_EXTERNAL_LOGGER, mhd_logger, NULL, MHD_OPTION_END);
 }
 
@@ -2626,6 +2627,7 @@ start_http_daemon (int port,
     port, NULL, NULL, handler, http_handlers, MHD_OPTION_NOTIFY_COMPLETED,
     free_resources, NULL, MHD_OPTION_SOCK_ADDR, address,
     MHD_OPTION_PER_IP_CONNECTION_LIMIT, get_per_ip_connection_limit (),
+    MHD_OPTION_THREAD_STACK_SIZE, (size_t) 4*1024*1024,
     MHD_OPTION_EXTERNAL_LOGGER, mhd_logger, NULL, MHD_OPTION_END);
 }
 
@@ -2653,6 +2655,7 @@ start_https_daemon (int port, const char *key, const char *cert,
     key, MHD_OPTION_HTTPS_MEM_CERT, cert, MHD_OPTION_NOTIFY_COMPLETED,
     free_resources, NULL, MHD_OPTION_SOCK_ADDR, address,
     MHD_OPTION_PER_IP_CONNECTION_LIMIT, get_per_ip_connection_limit (),
+    MHD_OPTION_THREAD_STACK_SIZE, (size_t) 4*1024*1024,
     MHD_OPTION_HTTPS_PRIORITIES, priorities, MHD_OPTION_EXTERNAL_LOGGER,
     mhd_logger, NULL,
 /* LibmicroHTTPD 0.9.35 and higher. */