[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [libmicrohttpd] Consider adding "are there active/suspended connecti
Re: [libmicrohttpd] Consider adding "are there active/suspended connections" information
Mon, 27 Oct 2014 18:00:51 +0100
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.8.1
On 10/27/2014 05:50 PM, Milan Straka wrote:
> Hi all,
> I would need to know whether any connections are handled by MHD_Daemon,
> after calling the MHD_quiesce_daemon.
Yes, MHD_quiesce_daemon just stops MHD from listening / accepting new
connections. Existing ones should be 'completed'.
> The information is readily available inside MHD_Daemon using the
> connections_head (and possibly suspended_connections_head).
> Would you consider allowing access to this information, for example using
> MHD_get_daemon_info? Either as 0/1 information with
> MHD_DAEMON_INFO_ANY_ACTIVE_CONNECTIONS (and possibly also with
> MHD_DAEMON_INFO_ANY_SUSPENDED_CONNECTIONS), or return the number
> of active connections with MHD_DAEMON_INFO_ACTIVE_CONNECTIONS
> (and possibly the suspended with MHD_DAEMON_INFO_SUSPENDED_CONNECTIONS)?
Sounds useful enough, please propose a patch.
Description: OpenPGP digital signature