aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/response.c
diff options
context:
space:
mode:
authorsilvioprog <silvioprog@gmail.com>2018-12-06 12:54:00 -0300
committersilvioprog <silvioprog@gmail.com>2018-12-06 12:54:00 -0300
commitb220303691d627ca3cfe0d949c6aa2257b722c60 (patch)
tree76cb426d1ef26437464d86313ce25fc9ea98898f /src/microhttpd/response.c
parent53674dcdfba0ade96b50672a709edae1eae0323a (diff)
downloadlibmicrohttpd-b220303691d627ca3cfe0d949c6aa2257b722c60.tar.gz
libmicrohttpd-b220303691d627ca3cfe0d949c6aa2257b722c60.zip
Optimized the function MHD_create_response_from_callback() for Windows by increasing its internal buffer size and allowed to customize it via macro MHD_FD_BLOCK_SIZE.
Diffstat (limited to 'src/microhttpd/response.c')
-rw-r--r--src/microhttpd/response.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c
index 21e23a8a..29edef4f 100644
--- a/src/microhttpd/response.c
+++ b/src/microhttpd/response.c
@@ -566,7 +566,7 @@ MHD_create_response_from_fd_at_offset64 (uint64_t size,
566 return NULL; 566 return NULL;
567 567
568 response = MHD_create_response_from_callback (size, 568 response = MHD_create_response_from_callback (size,
569 4 * 1024, 569 MHD_FD_BLOCK_SIZE,
570 &file_reader, 570 &file_reader,
571 NULL, 571 NULL,
572 &free_callback); 572 &free_callback);