aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/daemon.c
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2020-12-27 18:01:48 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2020-12-27 18:01:48 +0300
commita061caa22e732288ea21c109cb5de64ed28edf10 (patch)
tree3bf439b984823b96ec5e2c393659c73b56668691 /src/microhttpd/daemon.c
parentf53db2892e5af9841b0b19e6a5fea96fb2f8ebf8 (diff)
downloadlibmicrohttpd-a061caa22e732288ea21c109cb5de64ed28edf10.tar.gz
libmicrohttpd-a061caa22e732288ea21c109cb5de64ed28edf10.zip
Fixed builds with --disable-https or --disable-httpupgrade
Diffstat (limited to 'src/microhttpd/daemon.c')
-rw-r--r--src/microhttpd/daemon.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 40ec8fc9..6b0aec81 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -7099,6 +7099,7 @@ close_all_connections (struct MHD_Daemon *daemon)
7099 struct MHD_UpgradeResponseHandle *urh; 7099 struct MHD_UpgradeResponseHandle *urh;
7100 struct MHD_UpgradeResponseHandle *urhn; 7100 struct MHD_UpgradeResponseHandle *urhn;
7101 const bool used_tls = (0 != (daemon->options & MHD_USE_TLS)); 7101 const bool used_tls = (0 != (daemon->options & MHD_USE_TLS));
7102#endif /* HTTPS_SUPPORT && UPGRADE_SUPPORT */
7102 7103
7103 mhd_assert ( (0 == (daemon->options & MHD_USE_INTERNAL_POLLING_THREAD)) || \ 7104 mhd_assert ( (0 == (daemon->options & MHD_USE_INTERNAL_POLLING_THREAD)) || \
7104 (0 != (daemon->options & MHD_USE_THREAD_PER_CONNECTION)) || \ 7105 (0 != (daemon->options & MHD_USE_THREAD_PER_CONNECTION)) || \
@@ -7119,6 +7120,7 @@ close_all_connections (struct MHD_Daemon *daemon)
7119 pos); 7120 pos);
7120 new_connection_close_ (daemon, pos); 7121 new_connection_close_ (daemon, pos);
7121 } 7122 }
7123#if defined(HTTPS_SUPPORT) && defined(UPGRADE_SUPPORT)
7122 /* give upgraded HTTPS connections a chance to finish */ 7124 /* give upgraded HTTPS connections a chance to finish */
7123 /* 'daemon->urh_head' is not used in thread-per-connection mode. */ 7125 /* 'daemon->urh_head' is not used in thread-per-connection mode. */
7124 for (urh = daemon->urh_tail; NULL != urh; urh = urhn) 7126 for (urh = daemon->urh_tail; NULL != urh; urh = urhn)