gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [libmicrohttpd] 38/154: check getsockopt's.


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] 38/154: check getsockopt's.
Date: Mon, 19 Aug 2019 10:15:50 +0200

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

ng0 pushed a commit to branch master
in repository libmicrohttpd.

commit 15672269083796ccf82bef665fb2cc586c575f0a
Author: ng0 <address@hidden>
AuthorDate: Sun Jul 21 15:28:22 2019 +0000

    check getsockopt's.
---
 src/microhttpd/mhd_send.c | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)

diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
index dc2c8d69..ad63aa58 100644
--- a/src/microhttpd/mhd_send.c
+++ b/src/microhttpd/mhd_send.c
@@ -373,11 +373,12 @@ MHD_send_on_connection2_ (struct MHD_Connection 
*connection,
     if ((ret == header_len + buffer_len) && have_cork)
     {
       // Response complete, definitely uncork!
-      setsockopt (s,
-                  IPPROTO_TCP,
-                  TCP_CORK,
-                  (const void *) &off_val,
-                  sizeof (off_val));
+      if (0 == setsockopt (s,
+                           IPPROTO_TCP,
+                           TCP_CORK,
+                           (const void *) &off_val,
+                           sizeof (off_val)))
+        ;
     }
     errno = eno;
   }
@@ -393,11 +394,12 @@ MHD_send_on_connection2_ (struct MHD_Connection 
*connection,
       if (ret == header_len + buffer_len)
         {
           /* Response complete, set NOPUSH to off */
-          setsockopt (s,
-                      IPPROTO_TCP,
-                      TCP_NOPUSH,
-                      (const void *) &off_val,
-                      sizeof (off_val));
+          if (0 == setsockopt (s,
+                               IPPROTO_TCP,
+                               TCP_NOPUSH,
+                               (const void *) &off_val,
+                               sizeof (off_val)))
+            ;
         }
       errno = eno;
     }

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



reply via email to

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