[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 01/02: mhd_send: changed results for non-IP sockets
From: |
gnunet |
Subject: |
[libmicrohttpd] 01/02: mhd_send: changed results for non-IP sockets |
Date: |
Sat, 17 Apr 2021 17:53:06 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit c1b8333aa83738179f192ea2814cdaf88c22b711
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Sat Apr 17 18:24:25 2021 +0300
mhd_send: changed results for non-IP sockets
When some IP option is tried for non-IP socket report failure as option
cannot be applied.
---
src/microhttpd/mhd_send.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
index c1696619..a1c50917 100644
--- a/src/microhttpd/mhd_send.c
+++ b/src/microhttpd/mhd_send.c
@@ -176,7 +176,7 @@ MHD_connection_set_nodelay_state_ (struct MHD_Connection
*connection,
int err_code;
if (_MHD_YES == connection->is_nonip)
- return true;
+ return false;
if (0 == setsockopt (connection->socket_fd,
IPPROTO_TCP,
@@ -246,7 +246,7 @@ MHD_connection_set_cork_state_ (struct MHD_Connection
*connection,
int err_code;
if (_MHD_YES == connection->is_nonip)
- return true;
+ return false;
if (0 == setsockopt (connection->socket_fd,
IPPROTO_TCP,
MHD_TCP_CORK_NOPUSH,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.