56 "Failed to signal shutdown via inter-thread communication channel."));
64 #ifdef HAVE_LISTEN_SHUTDOWN 81 #if defined(HTTPS_SUPPORT) && defined(UPGRADE_SUPPORT) 119 if (MHD_ITC_IS_VALID_ (daemon->
itc))
121 if (! MHD_itc_activate_ (daemon->
itc,
124 "Failed to signal shutdown via inter-thread communication channel"));
128 #ifdef HAVE_LISTEN_SHUTDOWN 140 if (! MHD_join_thread_ (daemon->
pid.handle))
152 if (MHD_ITC_IS_VALID_ (daemon->
itc))
157 (-1 != daemon->epoll_fd) )
159 #if defined(HTTPS_SUPPORT) && defined(UPGRADE_SUPPORT) 161 (-1 != daemon->epoll_upgrade_fd) )
179 if (
NULL != daemon->tls_api)
182 if (daemon->have_dhparams)
184 gnutls_dh_params_deinit (daemon->https_mem_dhparams);
185 daemon->have_dhparams =
false;
187 gnutls_priority_deinit (daemon->priority_cache);
188 if (daemon->x509_cred)
189 gnutls_certificate_free_credentials (daemon->x509_cred);
enum MHD_EventLoopSyscall event_loop_syscall
#define MHD_ITC_IS_INVALID_(itc)
MHD_thread_handle_ID_ pid
#define MHD_mutex_destroy_chk_(pmutex)
internal shared structures
MHD_mutex_ per_ip_connection_mutex
struct MHD_Daemon * worker_pool
#define MHD_INVALID_SOCKET
unsigned int worker_pool_size
#define MHD_socket_close_chk_(fd)
function to close all connections open at a daemon
struct MHD_Daemon * master
void MHD_daemon_close_all_connections_(struct MHD_Daemon *daemon)
void MHD_daemon_destroy(struct MHD_Daemon *daemon)
static void stop_workers(struct MHD_Daemon *daemon)
#define MHD_itc_destroy_chk_(itc)
enum MHD_ThreadingMode threading_mode
MHD_mutex_ cleanup_connection_mutex
implementation of MHD_request_resume()