[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 03/07: MHD_start_daemon(): mark listen as UNIX based on
From: |
gnunet |
Subject: |
[libmicrohttpd] 03/07: MHD_start_daemon(): mark listen as UNIX based on available information |
Date: |
Fri, 10 Nov 2023 15:40:12 +0100 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit e47f63a37bf8da79cfd59bb5a6b4fd7ff36f8232
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Fri Nov 10 09:33:06 2023 +0300
MHD_start_daemon(): mark listen as UNIX based on available information
---
src/microhttpd/daemon.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 36942d16..388af660 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -7856,6 +7856,7 @@ MHD_start_daemon_va (unsigned int flags,
#endif
goto free_and_fail;
}
+ daemon->listen_is_unix = _MHD_NO;
/* Apply the socket options according to listening_address_reuse. */
if (0 == daemon->listening_address_reuse)
@@ -8122,6 +8123,8 @@ MHD_start_daemon_va (unsigned int flags,
/* Many non-Linux-based platforms return zero addrlen
* for AF_UNIX sockets */
daemon->port = 0; /* special value for UNIX domain sockets */
+ if (_MHD_UNKNOWN == daemon->listen_is_unix)
+ daemon->listen_is_unix = _MHD_YES;
}
#endif /* __linux__ */
#endif /* MHD_POSIX_SOCKETS */
@@ -8149,14 +8152,16 @@ MHD_start_daemon_va (unsigned int flags,
#ifdef AF_UNIX
case AF_UNIX:
daemon->port = 0; /* special value for UNIX domain sockets */
+ daemon->listen_is_unix = _MHD_YES;
break;
#endif
default:
#ifdef HAVE_MESSAGES
MHD_DLOG (daemon,
- _ ("Unknown address family!\n"));
+ _ ("Listen socket has unknown address family!\n"));
#endif
daemon->port = 0; /* ugh */
+ daemon->listen_is_unix = _MHD_UNKNOWN;
break;
}
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] branch master updated (e62cd69d -> a5649931), gnunet, 2023/11/10
- [libmicrohttpd] 02/07: daemon.c: moved processing and checking of app-provided listen socket, gnunet, 2023/11/10
- [libmicrohttpd] 04/07: MHD_start_daemon(): added some asserts, gnunet, 2023/11/10
- [libmicrohttpd] 03/07: MHD_start_daemon(): mark listen as UNIX based on available information,
gnunet <=
- [libmicrohttpd] 01/07: .gitlab-ci.yml: removed "keep-going" make flag, gnunet, 2023/11/10
- [libmicrohttpd] 06/07: MHD_start_daemon(): added stricter checks for bind() and listen() return values, gnunet, 2023/11/10
- [libmicrohttpd] 05/07: MHD_D_DOES_SCKT_FIT_FDSET_(): simplified macro, gnunet, 2023/11/10
- [libmicrohttpd] 07/07: MHD_start_daemon(): added check for epoll FD to fit fd_set for external polling mode, gnunet, 2023/11/10