test_iplimit: fixed MHD parameter format

This commit is contained in:
Evgeny Grin (Karlson2k)
2021-12-05 20:23:49 +03:00
parent 8cdc89b9c3
commit c153aef675
+2 -2
View File
@@ -135,7 +135,7 @@ testMultithreadedGet ()
d = MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG,
port, NULL, NULL,
&ahc_echo, "GET",
MHD_OPTION_PER_IP_CONNECTION_LIMIT, 2,
MHD_OPTION_PER_IP_CONNECTION_LIMIT, (unsigned int) 2,
MHD_OPTION_END);
if (d == NULL)
return 16;
@@ -246,7 +246,7 @@ testMultithreadedPoolGet ()
d = MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG,
port, NULL, NULL, &ahc_echo, "GET",
MHD_OPTION_PER_IP_CONNECTION_LIMIT, 2,
MHD_OPTION_PER_IP_CONNECTION_LIMIT, (unsigned int) 2,
MHD_OPTION_THREAD_POOL_SIZE, MHD_CPU_COUNT,
MHD_OPTION_END);
if (d == NULL)