[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 142/156: daemon.c: redesigned code for clarity and forma
From: |
gnunet |
Subject: |
[libmicrohttpd] 142/156: daemon.c: redesigned code for clarity and formatting |
Date: |
Sun, 28 May 2023 17:53:15 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to tag v0.9.77
in repository libmicrohttpd.
commit 1426d03b0dba111804f50c13409f274639bce711
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Thu May 25 13:22:16 2023 +0300
daemon.c: redesigned code for clarity and formatting
No functional change
---
src/microhttpd/daemon.c | 32 +++++++++++++++++---------------
1 file changed, 17 insertions(+), 15 deletions(-)
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 3801e438..58b7998c 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -4289,6 +4289,9 @@ MHD_select (struct MHD_Daemon *daemon,
&maxsock,
FD_SETSIZE)) )
{
+ bool retry_succeed;
+
+ retry_succeed = false;
#if defined(MHD_WINSOCK_SOCKETS)
/* fdset limit reached, new connections
cannot be handled. Remove listen socket FD
@@ -4298,24 +4301,23 @@ MHD_select (struct MHD_Daemon *daemon,
{
FD_CLR (ls,
&rs);
- if (! MHD_add_to_fd_set_ (MHD_itc_r_fd_ (daemon->itc),
- &rs,
- &maxsock,
- FD_SETSIZE))
- {
+ if (MHD_add_to_fd_set_ (MHD_itc_r_fd_ (daemon->itc),
+ &rs,
+ &maxsock,
+ FD_SETSIZE))
+ retry_succeed = true;
+ }
#endif /* MHD_WINSOCK_SOCKETS */
+
+ if (! retry_succeed)
+ {
#ifdef HAVE_MESSAGES
- MHD_DLOG (daemon,
- _ (
- "Could not add control inter-thread communication channel FD
to fdset.\n"));
+ MHD_DLOG (daemon,
+ _ ("Could not add control inter-thread communication " \
+ "channel FD to fdset.\n"));
#endif
- err_state = MHD_YES;
-#if defined(MHD_WINSOCK_SOCKETS)
- }
-}
-
-
-#endif /* MHD_WINSOCK_SOCKETS */
+ err_state = MHD_YES;
+ }
}
/* Stop listening if we are at the configured connection limit */
/* If we're at the connection limit, no point in really
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] 78/156: Added tests with single and double folded header, (continued)
- [libmicrohttpd] 78/156: Added tests with single and double folded header, gnunet, 2023/05/28
- [libmicrohttpd] 110/156: digest auth: fixed parallel access to the hash table, gnunet, 2023/05/28
- [libmicrohttpd] 114/156: examples/largepost.c: fixed code style, gnunet, 2023/05/28
- [libmicrohttpd] 125/156: .gitignore: force include all *.{c,h} files, gnunet, 2023/05/28
- [libmicrohttpd] 113/156: examples/largepost.c: fixed caseless method match, gnunet, 2023/05/28
- [libmicrohttpd] 129/156: Detect sysctl() symbols in configure, gnunet, 2023/05/28
- [libmicrohttpd] 98/156: .gitignore: added universal patter to ignore test binaries, gnunet, 2023/05/28
- [libmicrohttpd] 140/156: Added support for custom command for tarball compression, gnunet, 2023/05/28
- [libmicrohttpd] 143/156: Fixed compiler warning when built without poll() support, gnunet, 2023/05/28
- [libmicrohttpd] 141/156: contrib/make-dist.sh: added use of zopfli if available, gnunet, 2023/05/28
- [libmicrohttpd] 142/156: daemon.c: redesigned code for clarity and formatting,
gnunet <=
- [libmicrohttpd] 144/156: Avoided potential compiler warnings, gnunet, 2023/05/28
- [libmicrohttpd] 149/156: Removed Public Domain base64 decoding files, gnunet, 2023/05/28
- [libmicrohttpd] 151/156: ChangeLog: updated, gnunet, 2023/05/28
- [libmicrohttpd] 152/156: W32 VS project: reverted to standard arches names, gnunet, 2023/05/28
- [libmicrohttpd] 147/156: Added macro for base64 decoded size, gnunet, 2023/05/28
- [libmicrohttpd] 156/156: Released GNU libmicrohttpd 0.9.77, gnunet, 2023/05/28
- [libmicrohttpd] 146/156: test_str_base64: added test for base64 decoding, gnunet, 2023/05/28
- [libmicrohttpd] 150/156: test_basicauth: added new test, gnunet, 2023/05/28
- [libmicrohttpd] 154/156: autoinit_funcs.h: fixed warning on MSVC, gnunet, 2023/05/28
- [libmicrohttpd] 148/156: Basic auth: switched to internal base64 decoding, gnunet, 2023/05/28