gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [libmicrohttpd] 93/154: simplify


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] 93/154: simplify
Date: Mon, 19 Aug 2019 10:16:45 +0200

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

ng0 pushed a commit to branch master
in repository libmicrohttpd.

commit 8a68b2355f0d1d1732875e04e9844cff7e7d8902
Author: Christian Grothoff <address@hidden>
AuthorDate: Thu Jul 25 20:14:21 2019 +0200

    simplify
---
 src/microhttpd/mhd_send.c | 21 ---------------------
 1 file changed, 21 deletions(-)

diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
index c6a1dec5..21e70bc2 100644
--- a/src/microhttpd/mhd_send.c
+++ b/src/microhttpd/mhd_send.c
@@ -43,19 +43,9 @@ post_cork_setsockopt (struct MHD_Connection *connection,
                       bool want_cork)
 {
   int ret;
-  bool using_tls = false;
   // const MHD_SCKT_OPT_BOOL_ state_val = val ? 1 : 0;
   const MHD_SCKT_OPT_BOOL_ off_val = 0;
   const MHD_SCKT_OPT_BOOL_ on_val = 1;
-#ifdef HTTPS_SUPPORT
-  using_tls = (0 != (connection->daemon->options & MHD_USE_TLS));
-#endif
-
-  if (using_tls)
-    {
-      // not sure.
-      return 0; // ? without a value I get a return type error.
-    }
 
 #if TCP_CORK
   ret = setsockopt (connection->socket_fd,
@@ -90,20 +80,9 @@ pre_cork_setsockopt (struct MHD_Connection *connection,
                      bool want_cork)
 {
   int ret;
-  bool using_tls = false;
   // const MHD_SCKT_OPT_BOOL_ state_val = val ? 1 : 0;
   const MHD_SCKT_OPT_BOOL_ off_val = 0;
   const MHD_SCKT_OPT_BOOL_ on_val = 1;
-#ifdef HTTPS_SUPPORT
-  using_tls = (0 != (connection->daemon->options & MHD_USE_TLS));
-#endif
-
-  if (using_tls)
-    {
-      // more gnutls work?
-      // or all of it because we want to somehow handle the tls and error 
handling for it here?
-      return 0; // return type error
-    }
 
   // if sk_tcp_nodelay_on is already what we pass in, return.
   if (connection->sk_tcp_nodelay_on == want_cork)

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



reply via email to

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