48 MHD_PANIC (
_(
"Cannot resume connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n"));
53 if ( (MHD_ITC_IS_VALID_(daemon->
itc)) &&
54 (! MHD_itc_activate_ (daemon->
itc,
59 MHD_SC_ITC_USE_FAILED,
60 _(
"Failed to signal resume via inter-thread communication channel."));
98 while (
NULL != (pos = prev))
100 #ifdef UPGRADE_SUPPORT
101 struct MHD_UpgradeResponseHandle *
const urh = pos->
request.urh;
103 static const void *
const urh =
NULL;
107 #ifdef UPGRADE_SUPPORT
108 || ( (
NULL != urh) &&
109 ( (! urh->was_closed) ||
110 (! urh->clean_ready) ) )
144 MHD_PANIC (
"Resumed connection was already in EREADY set\n");
156 #ifdef UPGRADE_SUPPORT
164 if ( (
NULL != response) &&
179 if ( (used_thr_p_c) &&
182 if (! MHD_itc_activate_(daemon->
itc,
187 MHD_SC_ITC_USE_FAILED,
188 _(
"Failed to signal resume of connection via inter-thread communication channel."));
struct MHD_Request request
enum MHD_EventLoopSyscall event_loop_syscall
DLL_remove(daemon->suspended_connections_head, daemon->suspended_connections_tail, pos)
struct MHD_Connection * cleanup_head
MHD_mutex_lock_chk_ & daemon
#define MHD_mutex_unlock_chk_(pmutex)
void * termination_cb_cls
#define EDLL_insert(head, tail, element)
MHD_RequestTerminationCallback termination_cb
struct MHD_Connection * prev
struct MHD_Connection * manual_timeout_head
time_t MHD_monotonic_sec_counter(void)
internal shared structures
time_t connection_default_timeout
struct MHD_Daemon * daemon
#define DLL_insert(head, tail, element)
struct MHD_Connection * connections_tail
struct MHD_Daemon * worker_pool
functions to close connection
struct MHD_Connection * connections_head
time_t connection_timeout
struct MHD_Connection * manual_timeout_tail
struct MHD_Connection * prev
struct MHD_Connection * normal_timeout_head
void MHD_request_resume(struct MHD_Request *request)
struct MHD_Connection * suspended_connections_tail
struct MHD_Connection * cleanup_tail
struct MHD_Connection * normal_timeout_tail
struct MHD_Response * response
#define MHD_mutex_lock_chk_(pmutex)
#define XDLL_insert(head, tail, element)
struct MHD_Connection * connection
bool disallow_suspend_resume
struct MHD_Connection * suspended_connections_head
enum MHD_ThreadingMode threading_mode
MHD_mutex_ cleanup_connection_mutex