GNU libmicrohttpd 0.9.77
|
function to close all connections open at a daemon More...
Go to the source code of this file.
Functions | |
void | MHD_daemon_close_all_connections_ (struct MHD_Daemon *daemon) MHD_NONNULL(1) |
function to close all connections open at a daemon
Definition in file daemon_close_all_connections.h.
void MHD_daemon_close_all_connections_ | ( | struct MHD_Daemon * | daemon | ) |
Close all connections for the daemon. Must only be called when MHD_Daemon::shutdown was set to true.
daemon | daemon to close down |
Definition at line 89 of file daemon_close_all_connections.c.
References _, MHD_Daemon::cleanup_connection_mutex, close_connection(), MHD_Daemon::connections_tail, MHD_Connection::daemon, MHD_Daemon::disallow_suspend_resume, MHD_Daemon::disallow_upgrade, MHD_Daemon::itc, mhd_assert, MHD_connection_cleanup_(), MHD_connection_finish_forward_, MHD_mutex_lock_chk_, MHD_mutex_unlock_chk_, MHD_PANIC, MHD_request_resume(), MHD_resume_suspended_connections_(), NULL, MHD_Connection::pid, MHD_Connection::prev, MHD_Connection::request, MHD_Connection::resuming, MHD_Daemon::resuming, MHD_Daemon::shutdown, MHD_Connection::socket_fd, MHD_Daemon::suspended_connections_head, MHD_Daemon::suspended_connections_tail, MHD_Connection::thread_joined, MHD_Daemon::threading_mode, and MHD_Daemon::worker_pool.
Referenced by MHD_daemon_destroy(), and MHD_polling_thread().