mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-10-07 04:02:18 +03:00
change order to reduce #ifdef'ing
This commit is contained in:
1 file changed
+3
-5
@@ -5448,16 +5448,14 @@ close_all_connections (struct MHD_Daemon *daemon)
|
||||
{
|
||||
struct MHD_Connection *pos;
|
||||
const _MHD_bool used_thr_p_c = (0 != (daemon->options & MHD_USE_THREAD_PER_CONNECTION));
|
||||
#ifdef UPGRADE_SUPPORT
|
||||
const _MHD_bool upg_allowed = (0 != (daemon->options & MHD_ALLOW_UPGRADE));
|
||||
#endif /* UPGRADE_SUPPORT */
|
||||
#if defined(HTTPS_SUPPORT) && defined(UPGRADE_SUPPORT)
|
||||
struct MHD_UpgradeResponseHandle *urh;
|
||||
struct MHD_UpgradeResponseHandle *urhn;
|
||||
const _MHD_bool used_tls = (0 != (daemon->options & MHD_USE_TLS));
|
||||
#endif /* HTTPS_SUPPORT && UPGRADE_SUPPORT */
|
||||
#ifdef UPGRADE_SUPPORT
|
||||
const _MHD_bool upg_allowed = (0 != (daemon->options & MHD_ALLOW_UPGRADE));
|
||||
#endif /* UPGRADE_SUPPORT */
|
||||
|
||||
#if defined(HTTPS_SUPPORT) && defined(UPGRADE_SUPPORT)
|
||||
/* give upgraded HTTPS connections a chance to finish */
|
||||
/* 'daemon->urh_head' is not used in thread-per-connection mode. */
|
||||
for (urh = daemon->urh_head; NULL != urh; urh = urhn)
|
||||
|
||||
Reference in new issue
Block a user