[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 04/05: Fixed MHD_FEATURE_AUTOSUPPRESS_SIGPIPE return val
From: |
gnunet |
Subject: |
[libmicrohttpd] 04/05: Fixed MHD_FEATURE_AUTOSUPPRESS_SIGPIPE return value |
Date: |
Sun, 28 Nov 2021 17:44:37 +0100 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit dbf407c26a3d76a26c1a28fbb8f7b810bcdbf16f
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Sun Nov 28 19:38:18 2021 +0300
Fixed MHD_FEATURE_AUTOSUPPRESS_SIGPIPE return value
---
src/include/microhttpd.h | 2 +-
src/microhttpd/daemon.c | 4 ++--
src/microhttpd/mhd_sockets.h | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index 6d9fa67d..3b755e5d 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -4543,7 +4543,7 @@ enum MHD_FEATURE
MHD_FEATURE_AUTODETECT_BIND_PORT = 19,
/**
- * Get whether MHD support SIGPIPE suppression.
+ * Get whether MHD supports automatic SIGPIPE suppression.
* If SIGPIPE suppression is not supported, application must handle
* SIGPIPE signal by itself.
*/
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 95f10fdd..25ac0969 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -8035,8 +8035,8 @@ MHD_is_feature_supported (enum MHD_FEATURE feature)
return MHD_NO;
#endif
case MHD_FEATURE_AUTOSUPPRESS_SIGPIPE:
-#if defined(MHD_SEND_SPIPE_SUPPRESS_POSSIBLE) && \
- defined(MHD_SEND_SPIPE_SUPPRESS_NEEDED)
+#if defined(MHD_SEND_SPIPE_SUPPRESS_POSSIBLE) || \
+ ! defined(MHD_SEND_SPIPE_SUPPRESS_NEEDED)
return MHD_YES;
#else
return MHD_NO;
diff --git a/src/microhttpd/mhd_sockets.h b/src/microhttpd/mhd_sockets.h
index d46f10a9..35fdf6b4 100644
--- a/src/microhttpd/mhd_sockets.h
+++ b/src/microhttpd/mhd_sockets.h
@@ -926,8 +926,8 @@ static const int _MHD_socket_int_one = 1;
/**
* Indicate that SIGPIPE can be suppressed by MHD for normal send() by flags
* or socket options.
- * If this macro is undefined, MHD cannot suppress SIGPIPE for normal
- * processing so sendfile() or writev() calls is not avoided.
+ * If this macro is undefined, MHD cannot suppress SIGPIPE for socket functions
+ * so sendfile() or writev() calls are avoided in application threads.
*/
#define MHD_SEND_SPIPE_SUPPRESS_POSSIBLE 1
#endif /* MHD_WINSOCK_SOCKETS || MHD_socket_nosignal_ || MSG_NOSIGNAL */
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] branch master updated (cca1730f -> ff12c572), gnunet, 2021/11/28
- [libmicrohttpd] 02/05: Cosmetics: removed duplicated value, gnunet, 2021/11/28
- [libmicrohttpd] 01/05: test_client_put_stop: check for right reason, gnunet, 2021/11/28
- [libmicrohttpd] 04/05: Fixed MHD_FEATURE_AUTOSUPPRESS_SIGPIPE return value,
gnunet <=
- [libmicrohttpd] 05/05: test_client_put_stop: suppress SIGPIPE on the client side, gnunet, 2021/11/28
- [libmicrohttpd] 03/05: If socket error is detected, try to detect the type of error before closing, gnunet, 2021/11/28