[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 02/03: daemon.c: clearer error report for sockets not fi
From: |
gnunet |
Subject: |
[libmicrohttpd] 02/03: daemon.c: clearer error report for sockets not fit FD_SETSIZE |
Date: |
Mon, 26 Oct 2020 20:21:54 +0100 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit d46bdbc34e1e82e3dc58906286925a8a452f7278
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Mon Oct 26 22:06:49 2020 +0300
daemon.c: clearer error report for sockets not fit FD_SETSIZE
---
src/microhttpd/daemon.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index fb3beecb..fc6303e2 100644
--- 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;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.