libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 1cc593e3527f5c1b2467234e64d0f136b1aa47bc
parent 42e98f38c6fa85d953f275c8d9a693bc77fee7cf
Author: ng0 <ng0@n0.is>
Date:   Tue, 23 Jul 2019 13:28:35 +0000

sendfile and netbsd, comment.

Diffstat:
Msrc/microhttpd/mhd_send.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git 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,