libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 70f3f88b24c206dab45a9b9afbdcb444db9c9e1a
parent 63abb11b52edbee5773edf6031e15408b6f722c6
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Sun, 30 Oct 2016 19:05:17 +0300

Print error if upgraded connection was not closed before daemon shutdown.

Diffstat:
Msrc/microhttpd/daemon.c | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c @@ -972,6 +972,13 @@ process_urh (struct MHD_UpgradeResponseHandle *urh) if (MHD_NO != urh->connection->daemon->shutdown) { /* Daemon shutting down, application will not receive any more data. */ +#ifdef HAVE_MESSAGES + if (MHD_NO == urh->was_closed) + { + MHD_DLOG (urh->connection->daemon, + _("Initiated daemon shutdown while \"upgraded\" connection was not closed.\n")); + } +#endif urh->was_closed = MHD_YES; } if (MHD_NO != urh->was_closed)