gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [libmicrohttpd] 09/154: startingpoint


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] 09/154: startingpoint
Date: Mon, 19 Aug 2019 10:15:21 +0200

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

ng0 pushed a commit to branch master
in repository libmicrohttpd.

commit 0d394e2aaee3fbbebd148c373630a6ecbc3b3592
Author: Christian Grothoff <address@hidden>
AuthorDate: Mon Jun 17 20:26:41 2019 +0200

    startingpoint
---
 src/microhttpd/mhd_send.c | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
index df276f00..252e5e86 100644
--- a/src/microhttpd/mhd_send.c
+++ b/src/microhttpd/mhd_send.c
@@ -93,6 +93,31 @@ MHD_send_on_connection_ (struct MHD_Connection *connection,
   /* s: the socket. */
   MHD_socket s = connection->socket_fd;
 
+  bool want_cork;
+  bool have_cork;
+  bool have_more;
+
+  switch (options)
+  {
+  case MHD_SSO_NO_CORK:
+    want_cork = false;
+    break;
+  case MHD_SSO_MAY_CORK:
+    want_cork = true;
+    break;
+  case MHD_SSO_HDR_CORK:
+    want_cork = (buffer_size >= 1024) && (buffer_size <= 1220);
+    break;
+  }
+  have_cork = ! connection->sk_tcp_nodelay_on;
+#ifdef MSG_MORE
+  have_more = true;
+#else
+  have_more = false;
+#endif
+
+
+
   /* Get socket options, change/set options if necessary. */
   switch (options)
   {

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



reply via email to

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