diff options
Diffstat (limited to 'src/microhttpd/mhd_send.c')
-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, |