gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [libmicrohttpd] 09/10: MHD_start_daemon(): report if TCP_FA


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] 09/10: MHD_start_daemon(): report if TCP_FASTOPEN is used on supported platform
Date: Tue, 21 May 2019 21:29:13 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit c835a2334f84d74a0c13308444fd6895fb744980
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Tue May 21 22:12:43 2019 +0300

    MHD_start_daemon(): report if TCP_FASTOPEN is used on supported platform
---
 src/microhttpd/daemon.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index d3d46de3..b2185b4c 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -5210,12 +5210,18 @@ parse_options_va (struct MHD_Daemon *daemon,
                                               size_t);
           break;
 #endif
-#ifdef TCP_FASTOPEN
         case MHD_OPTION_TCP_FASTOPEN_QUEUE_SIZE:
+#ifdef TCP_FASTOPEN
           daemon->fastopen_queue_size = va_arg (ap,
                                                 unsigned int);
           break;
-#endif
+#else  /* ! TCP_FASTOPEN */
+#ifdef HAVE_MESSAGES
+          MHD_DLOG (daemon,
+                    _("TCP fastopen is not supported on this platform\n"));
+          return MHD_NO;
+#endif /* HAVE_MESSAGES */
+#endif /* ! TCP_FASTOPEN */
        case MHD_OPTION_LISTENING_ADDRESS_REUSE:
          daemon->listening_address_reuse = va_arg (ap,
                                                     unsigned int) ? 1 : -1;

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]