avoid backlog issue by increasing backlog size

This commit is contained in:
Christian Grothoff 2018-08-11 02:49:08 +02:00
parent 2637c1b682
commit 18736c4b91
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -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,