aboutsummaryrefslogtreecommitdiff
path: root/src/include/microhttpd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/microhttpd.h')
-rw-r--r--src/include/microhttpd.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index 46a82625..7347447c 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -538,11 +538,16 @@ enum MHD_FLAG
538 MHD_USE_DEBUG = 1, 538 MHD_USE_DEBUG = 1,
539 539
540 /** 540 /**
541 * Run in HTTPS mode. 541 * Run in HTTPS mode. Same as #MHD_USE_TLS, just using the historic name.
542 */ 542 */
543 MHD_USE_SSL = 2, 543 MHD_USE_SSL = 2,
544 544
545 /** 545 /**
546 * Run in HTTPS mode. The modern protocol is called TLS.
547 */
548 MHD_USE_TLS = 2,
549
550 /**
546 * Run using one thread per connection. 551 * Run using one thread per connection.
547 */ 552 */
548 MHD_USE_THREAD_PER_CONNECTION = 4, 553 MHD_USE_THREAD_PER_CONNECTION = 4,
@@ -672,7 +677,17 @@ enum MHD_FLAG
672 * kernel >= 3.6. On other systems, using this option cases #MHD_start_daemon 677 * kernel >= 3.6. On other systems, using this option cases #MHD_start_daemon
673 * to fail. 678 * to fail.
674 */ 679 */
675 MHD_USE_TCP_FASTOPEN = 16384 680 MHD_USE_TCP_FASTOPEN = 16384,
681
682 /**
683 * You need to set this option if you want to use epoll() in
684 * combination with HTTPS connections and switching protocols via
685 * connection upgrades (via #MHD_create_response_for_upgrade()).
686 * This flag is required as under these circumstances we need to
687 * open up an extra file descriptor, which we do not want to do
688 * unless necessary.
689 */
690 MHD_USE_TLS_EPOLL_UPGRADE = 32768 | MHD_USE_SUSPEND_RESUME | MHD_USE_EPOLL | MHD_USE_TLS
676 691
677}; 692};
678 693