diff options
Diffstat (limited to 'src/microhttpd/test_upgrade_ssl.c')
-rw-r--r-- | src/microhttpd/test_upgrade_ssl.c | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/src/microhttpd/test_upgrade_ssl.c b/src/microhttpd/test_upgrade_ssl.c index dd70a01d..229af8f5 100644 --- a/src/microhttpd/test_upgrade_ssl.c +++ b/src/microhttpd/test_upgrade_ssl.c | |||
@@ -393,7 +393,8 @@ ahc_upgrade (void *cls, | |||
393 | 393 | ||
394 | 394 | ||
395 | static int | 395 | static int |
396 | test_upgrade_internal (int flags) | 396 | test_upgrade_internal (int flags, |
397 | unsigned int pool) | ||
397 | { | 398 | { |
398 | struct MHD_Daemon *d; | 399 | struct MHD_Daemon *d; |
399 | MHD_socket sock; | 400 | MHD_socket sock; |
@@ -405,6 +406,7 @@ test_upgrade_internal (int flags) | |||
405 | &ahc_upgrade, NULL, | 406 | &ahc_upgrade, NULL, |
406 | MHD_OPTION_HTTPS_MEM_KEY, srv_signed_key_pem, | 407 | MHD_OPTION_HTTPS_MEM_KEY, srv_signed_key_pem, |
407 | MHD_OPTION_HTTPS_MEM_CERT, srv_signed_cert_pem, | 408 | MHD_OPTION_HTTPS_MEM_CERT, srv_signed_cert_pem, |
409 | MHD_OPTION_THREAD_POOL_SIZE, pool, | ||
408 | MHD_OPTION_END); | 410 | MHD_OPTION_END); |
409 | if (NULL == d) | 411 | if (NULL == d) |
410 | return 2; | 412 | return 2; |
@@ -440,13 +442,23 @@ main (int argc, | |||
440 | 442 | ||
441 | if (0 != system ("openssl version 1> /dev/null")) | 443 | if (0 != system ("openssl version 1> /dev/null")) |
442 | return 77; /* openssl not available, can't run the test */ | 444 | return 77; /* openssl not available, can't run the test */ |
443 | error_count += test_upgrade_internal (MHD_USE_SELECT_INTERNALLY); | 445 | error_count += test_upgrade_internal (MHD_USE_SELECT_INTERNALLY, |
446 | 1); | ||
447 | error_count += test_upgrade_internal (MHD_USE_SELECT_INTERNALLY, | ||
448 | 2); | ||
444 | #ifdef HAVE_POLL | 449 | #ifdef HAVE_POLL |
445 | error_count += test_upgrade_internal (MHD_USE_POLL_INTERNALLY); | 450 | error_count += test_upgrade_internal (MHD_USE_POLL_INTERNALLY, |
451 | 1); | ||
452 | error_count += test_upgrade_internal (MHD_USE_POLL_INTERNALLY, | ||
453 | 2); | ||
446 | #endif | 454 | #endif |
447 | #ifdef EPOLL_SUPPORT | 455 | #ifdef EPOLL_SUPPORT |
448 | error_count += test_upgrade_internal (MHD_USE_EPOLL_INTERNALLY | | 456 | error_count += test_upgrade_internal (MHD_USE_EPOLL_INTERNALLY | |
449 | MHD_USE_TLS_EPOLL_UPGRADE); | 457 | MHD_USE_TLS_EPOLL_UPGRADE, |
458 | 1); | ||
459 | error_count += test_upgrade_internal (MHD_USE_EPOLL_INTERNALLY | | ||
460 | MHD_USE_TLS_EPOLL_UPGRADE, | ||
461 | 2); | ||
450 | #endif | 462 | #endif |
451 | if (error_count != 0) | 463 | if (error_count != 0) |
452 | fprintf (stderr, | 464 | fprintf (stderr, |