|
From: | Nicolas Mora |
Subject: | [libmicrohttpd] How to close all upgraded connections when shutting down MHD_Daemon? |
Date: | Wed, 3 May 2017 20:18:30 -0400 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
Hello,I'm currently working on an implementation of a websocket manager with MHD and it's getting pretty good so far.
The problem I have is when the daemon is shut down and there are open connections. The documentation on MHD_quiesce_daemon says that "Note that the caller is responsible for closing the returned socket;" which is close to what I have, but since a websocket can be left open indefinitely, I need to know if the daemon needs to stop.
Is there a signal or an event or any other way for the upgrade_handler function to know that a MHD_quiesce_daemon or a MHD_stop_daemon has been sent ?
[Prev in Thread] | Current Thread | [Next in Thread] |