aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2016-10-30 19:05:17 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2016-10-30 19:05:17 +0300
commit70f3f88b24c206dab45a9b9afbdcb444db9c9e1a (patch)
tree33f1335cfc21eac49aec8c86dab7230f721a6490
parent63abb11b52edbee5773edf6031e15408b6f722c6 (diff)
downloadlibmicrohttpd-70f3f88b24c206dab45a9b9afbdcb444db9c9e1a.tar.gz
libmicrohttpd-70f3f88b24c206dab45a9b9afbdcb444db9c9e1a.zip
Print error if upgraded connection was not closed before daemon shutdown.
-rw-r--r--src/microhttpd/daemon.c7
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)
972 if (MHD_NO != urh->connection->daemon->shutdown) 972 if (MHD_NO != urh->connection->daemon->shutdown)
973 { 973 {
974 /* Daemon shutting down, application will not receive any more data. */ 974 /* Daemon shutting down, application will not receive any more data. */
975#ifdef HAVE_MESSAGES
976 if (MHD_NO == urh->was_closed)
977 {
978 MHD_DLOG (urh->connection->daemon,
979 _("Initiated daemon shutdown while \"upgraded\" connection was not closed.\n"));
980 }
981#endif
975 urh->was_closed = MHD_YES; 982 urh->was_closed = MHD_YES;
976 } 983 }
977 if (MHD_NO != urh->was_closed) 984 if (MHD_NO != urh->was_closed)