gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [libmicrohttpd] 59/154: sendfile and netbsd, comment.


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] 59/154: sendfile and netbsd, comment.
Date: Mon, 19 Aug 2019 10:16:11 +0200

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

ng0 pushed a commit to branch master
in repository libmicrohttpd.

commit 1cc593e3527f5c1b2467234e64d0f136b1aa47bc
Author: ng0 <address@hidden>
AuthorDate: Tue Jul 23 13:28:35 2019 +0000

    sendfile and netbsd, comment.
---
 src/microhttpd/mhd_send.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
index 0de40a42..3af0eb64 100644
--- a/src/microhttpd/mhd_send.c
+++ b/src/microhttpd/mhd_send.c
@@ -426,6 +426,11 @@ MHD_send_on_connection2_ (struct MHD_Connection 
*connection,
 #endif
 }
 
+/* Worth considering for future improvements and additions:
+ * NetBSD has no sendfile or sendfile64. The way to work
+ * with this seems to be to mmap the file and write(2) as
+ * large a chunk as possible to the socket. Alternatively,
+ * use madvise(..., MADV_SEQUENTIAL). */
 ssize_t
 MHD_sendfile_on_connection_ (struct MHD_Connection *connection,
                              const char *buffer,

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



reply via email to

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