GNU libmicrohttpd
0.9.72
|
function to clean up completed connections More...
Go to the source code of this file.
Functions | |
void | MHD_connection_cleanup_ (struct MHD_Daemon *daemon) |
function to clean up completed connections
Definition in file connection_cleanup.c.
void MHD_connection_cleanup_ | ( | struct MHD_Daemon * | daemon | ) |
Free resources associated with all closed connections. (destroy responses, free buffers, etc.). All closed connections are kept in the "cleanup" doubly-linked list.
daemon | daemon to clean up |
Definition at line 78 of file connection_cleanup.c.
References _, MHD_Connection::addr, MHD_Connection::addr_len, MHD_Daemon::at_limit, MHD_Daemon::cleanup_connection_mutex, MHD_Daemon::cleanup_head, MHD_Daemon::cleanup_tail, MHD_TLS_Plugin::cls, MHD_Daemon::connections, MHD_Connection::daemon, DLL_remove, EDLL_remove, MHD_Daemon::event_loop_syscall, MHD_CONNECTION_NOTIFY_CLOSED, MHD_EPOLL_STATE_IN_EPOLL_SET, MHD_EPOLL_STATE_IN_EREADY_EDLL, MHD_INVALID_SOCKET, MHD_ip_limit_del(), MHD_mutex_lock_chk_, MHD_mutex_unlock_chk_, MHD_PANIC, MHD_pool_destroy(), MHD_response_queue_for_destroy(), MHD_socket_close_chk_, MHD_Daemon::notify_connection_cb, MHD_Daemon::notify_connection_cb_cls, NULL, MHD_Connection::pid, MHD_Connection::pool, MHD_Connection::request, MHD_Request::response, MHD_Connection::socket_fd, MHD_TLS_Plugin::teardown_connection, MHD_Connection::thread_joined, and MHD_Daemon::threading_mode.
Referenced by MHD_daemon_close_all_connections_(), MHD_daemon_get_information_sz(), MHD_daemon_run(), and MHD_daemon_start().