49 "Cannot resume connections without enabling MHD_ALLOW_SUSPEND_RESUME!\n"));
54 if ( (MHD_ITC_IS_VALID_ (daemon->
itc)) &&
55 (! MHD_itc_activate_ (daemon->
itc,
60 MHD_SC_ITC_USE_FAILED,
62 "Failed to signal resume via inter-thread communication channel.\n"));
85 const bool used_thr_p_c = (MHD_TM_THREAD_PER_CONNECTION ==
103 #ifdef UPGRADE_SUPPORT
104 struct MHD_UpgradeResponseHandle *
const urh = pos->
request.urh;
106 static const void *
const urh =
NULL;
110 #ifdef UPGRADE_SUPPORT
111 || ( (
NULL != urh) &&
112 ( (! urh->was_closed) ||
113 (! urh->clean_ready) ) )
147 MHD_PANIC (
"Resumed connection was already in EREADY set.\n");
160 #ifdef UPGRADE_SUPPORT
168 if ( (
NULL != response) &&
183 if ( (used_thr_p_c) &&
186 if (! MHD_itc_activate_ (daemon->
itc,
191 MHD_SC_ITC_USE_FAILED,
193 "Failed to signal resume of connection via inter-thread communication channel.\n"));
functions to close connection
@ MHD_REQUEST_TERMINATED_COMPLETED_OK
#define XDLL_insert(head, tail, element)
@ MHD_EPOLL_STATE_SUSPENDED
@ MHD_EPOLL_STATE_IN_EREADY_EDLL
@ MHD_EPOLL_STATE_READ_READY
@ MHD_EPOLL_STATE_WRITE_READY
#define DLL_insert(head, tail, element)
#define EDLL_insert(head, tail, element)
#define DLL_remove(head, tail, element)
#define MHD_mutex_unlock_chk_(pmutex)
#define MHD_mutex_lock_chk_(pmutex)
time_t MHD_monotonic_sec_counter(void)
internal shared structures
void MHD_request_resume(struct MHD_Request *request)
bool MHD_resume_suspended_connections_(struct MHD_Daemon *daemon)
struct MHD_Request request
time_t connection_timeout
struct MHD_Connection * prev
struct MHD_Daemon * daemon
MHD_mutex_ cleanup_connection_mutex
struct MHD_Connection * connections_head
enum MHD_EventLoopSyscall event_loop_syscall
struct MHD_Connection * manual_timeout_tail
bool disallow_suspend_resume
struct MHD_Connection * cleanup_tail
struct MHD_Daemon * worker_pool
time_t connection_default_timeout
struct MHD_Connection * manual_timeout_head
struct MHD_Connection * suspended_connections_tail
struct MHD_Connection * cleanup_head
struct MHD_Connection * normal_timeout_head
struct MHD_Connection * normal_timeout_tail
enum MHD_ThreadingMode threading_mode
struct MHD_Connection * suspended_connections_head
struct MHD_Connection * connections_tail
struct MHD_Response * response
struct MHD_Connection * connection
struct MHD_Daemon * daemon
void * termination_cb_cls
MHD_RequestTerminationCallback termination_cb