diff options
author | ng0 <ng0@n0.is> | 2019-07-23 13:28:35 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-07-23 13:28:35 +0000 |
commit | 1cc593e3527f5c1b2467234e64d0f136b1aa47bc (patch) | |
tree | 992c5372174d4c99786d4893b0f3f0beab89aadb /src/microhttpd | |
parent | 42e98f38c6fa85d953f275c8d9a693bc77fee7cf (diff) | |
download | libmicrohttpd-1cc593e3527f5c1b2467234e64d0f136b1aa47bc.tar.gz libmicrohttpd-1cc593e3527f5c1b2467234e64d0f136b1aa47bc.zip |
sendfile and netbsd, comment.
Diffstat (limited to 'src/microhttpd')
-rw-r--r-- | src/microhttpd/mhd_send.c | 5 |
1 files changed, 5 insertions, 0 deletions
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, | |||
426 | #endif | 426 | #endif |
427 | } | 427 | } |
428 | 428 | ||
429 | /* Worth considering for future improvements and additions: | ||
430 | * NetBSD has no sendfile or sendfile64. The way to work | ||
431 | * with this seems to be to mmap the file and write(2) as | ||
432 | * large a chunk as possible to the socket. Alternatively, | ||
433 | * use madvise(..., MADV_SEQUENTIAL). */ | ||
429 | ssize_t | 434 | ssize_t |
430 | MHD_sendfile_on_connection_ (struct MHD_Connection *connection, | 435 | MHD_sendfile_on_connection_ (struct MHD_Connection *connection, |
431 | const char *buffer, | 436 | const char *buffer, |