libmicrohttpd

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

commit d46bdbc34e1e82e3dc58906286925a8a452f7278
parent 04bb482134976a0f5ce3633bdb12807237f1a8cb
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Mon, 26 Oct 2020 22:06:49 +0300

daemon.c: clearer error report for sockets not fit FD_SETSIZE

Diffstat:
Msrc/microhttpd/daemon.c | 10++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c @@ -2868,7 +2868,8 @@ internal_add_connection (struct MHD_Daemon *daemon, { #ifdef HAVE_MESSAGES MHD_DLOG (daemon, - _ ("Socket descriptor larger than FD_SETSIZE: %d > %d\n"), + _ ("New connection socket descriptor (%d) is not less " \ + "than FD_SETSIZE (%d).\n"), (int) client_socket, (int) FD_SETSIZE); #endif @@ -6644,9 +6645,10 @@ MHD_start_daemon_va (unsigned int flags, { #ifdef HAVE_MESSAGES MHD_DLOG (daemon, - _ ("Socket descriptor larger than FD_SETSIZE: %d > %d\n"), - listen_fd, - FD_SETSIZE); + _ ("Listen socket descriptor (%d) is not " \ + "less than FD_SETSIZE (%d).\n"), + (int) listen_fd, + (int) FD_SETSIZE); #endif MHD_socket_close_chk_ (listen_fd); goto free_and_fail;