[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libmicrohttpd] branch master updated: Added MHD_FEATURE_SE
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libmicrohttpd] branch master updated: Added MHD_FEATURE_SENDFILE test feature |
Date: |
Thu, 23 Nov 2017 15:57:16 +0100 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
The following commit(s) were added to refs/heads/master by this push:
new add9d89d Added MHD_FEATURE_SENDFILE test feature
add9d89d is described below
commit add9d89d3b3b5be84b35ef85d490a1b2b34bca7f
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Thu Nov 23 17:56:55 2017 +0300
Added MHD_FEATURE_SENDFILE test feature
---
ChangeLog | 3 +++
src/include/microhttpd.h | 9 ++++++++-
src/microhttpd/daemon.c | 7 +++++++
3 files changed, 18 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index b574c33a..99c89d94 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+Thu Nov 23 17:40:00 MSK 2017
+ Added MHD_FEATURE_SENDFILE enum value and report. -EG
+
Thu Nov 23 08:56:00 MSK 2017
Fixed receiving large requests in TLS mode with epoll.
Improved GnuTLS and libgcrypt detection in configure, do not ignore
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index f797c01d..6b749477 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -3477,7 +3477,14 @@ enum MHD_FEATURE
* If SIGPIPE suppression is not supported, application must handle
* SIGPIPE signal by itself.
*/
- MHD_FEATURE_AUTOSUPPRESS_SIGPIPE = 20
+ MHD_FEATURE_AUTOSUPPRESS_SIGPIPE = 20,
+
+ /**
+ * Get whether MHD use system's sendfile() function to send
+ * file-FD based responses over non-TLS connections.
+ * @note Since v0.9.56
+ */
+ MHD_FEATURE_SENDFILE = 21
};
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 8ead8610..f9bebd35 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -6623,6 +6623,13 @@ MHD_is_feature_supported(enum MHD_FEATURE feature)
#else
return MHD_NO;
#endif
+ case MHD_FEATURE_SENDFILE:
+#ifdef _MHD_HAVE_SENDFILE
+ return MHD_YES;
+#else
+ return MHD_NO;
+#endif
+
}
return MHD_NO;
}
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [libmicrohttpd] branch master updated: Added MHD_FEATURE_SENDFILE test feature,
gnunet <=