diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2016-10-30 19:05:17 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2016-10-30 19:05:17 +0300 |
commit | 70f3f88b24c206dab45a9b9afbdcb444db9c9e1a (patch) | |
tree | 33f1335cfc21eac49aec8c86dab7230f721a6490 | |
parent | 63abb11b52edbee5773edf6031e15408b6f722c6 (diff) |
Print error if upgraded connection was not closed before daemon shutdown.
-rw-r--r-- | src/microhttpd/daemon.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index 622ab34e..2d0ab197 100644 --- 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) |