libmicrohttpd

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

commit 3d339ebd9f9318581957bfea64cf167f418d0f49
parent ccd676036751f15a8a7558640660620848b40d6b
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Tue, 20 Oct 2020 10:33:15 +0300

MHD_add_connection(): warn about suboptimal usage

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

diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c @@ -3214,6 +3214,18 @@ MHD_add_connection (struct MHD_Daemon *daemon, (daemon->connection_limit <= daemon->connections)) MHD_cleanup_connections (daemon); +#ifdef HAVE_MESSAGES + if ((0 != (daemon->options & MHD_USE_INTERNAL_POLLING_THREAD)) && + (0 == (daemon->options & MHD_USE_ITC))) + { + MHD_DLOG (daemon, + _ ("MHD_add_connection() has called for daemon started without" + " MHD_USE_ITC flag.\nDaemon will not process newly added" + " connection until any activity occurs in already added" + " sockets.\n")); + } +#endif /* HAVE_MESSAGES */ + if (! MHD_socket_nonblocking_ (client_socket)) { #ifdef HAVE_MESSAGES