commit 18736c4b91fbd7b24d733e9d457d09615ad35020
parent 2637c1b682565f3c4e43c03f1fa3755bdf2ae5d9
Author: Christian Grothoff <christian@grothoff.org>
Date: Sat, 11 Aug 2018 02:49:08 +0200
avoid backlog issue by increasing backlog size
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c
@@ -948,7 +948,8 @@ main (int argc,
(-1 == fh) ? serve_port : 0,
NULL, NULL,
&handle_mhd_request, NULL,
- MHD_OPTION_THREAD_POOL_SIZE, (unsigned int) 16,
+ MHD_OPTION_THREAD_POOL_SIZE, (unsigned int) 24,
+ MHD_OPTION_LISTEN_BACKLOG_SIZE, (unsigned int) 1024,
MHD_OPTION_LISTEN_SOCKET, fh,
MHD_OPTION_EXTERNAL_LOGGER, &handle_mhd_logs, NULL,
MHD_OPTION_NOTIFY_COMPLETED, &handle_mhd_completion_callback, NULL,