aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/mhd_send.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/mhd_send.c')
-rw-r--r--src/microhttpd/mhd_send.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
index d7129337..70c8983e 100644
--- a/src/microhttpd/mhd_send.c
+++ b/src/microhttpd/mhd_send.c
@@ -1094,14 +1094,15 @@ MHD_send_sendfile_ (struct MHD_Connection *connection)
1094 1094
1095 left = connection->response->total_size - connection->response_write_position; 1095 left = connection->response->total_size - connection->response_write_position;
1096 1096
1097 if ( (uint64_t) SSIZE_MAX > left) 1097 if ( (uint64_t) SSIZE_MAX < left)
1098 left = SSIZE_MAX; 1098 left = SSIZE_MAX;
1099
1099 /* Do not allow system to stick sending on single fast connection: 1100 /* Do not allow system to stick sending on single fast connection:
1100 * use 128KiB chunks (2MiB for thread-per-connection). */ 1101 * use 128KiB chunks (2MiB for thread-per-connection). */
1101 if (chunk_size < left) 1102 if (chunk_size < left)
1102 { 1103 {
1103 send_size = chunk_size; 1104 send_size = chunk_size;
1104 push_data = false; /* No need to push data, there is more to send, */ 1105 push_data = false; /* No need to push data, there is more to send. */
1105 } 1106 }
1106 else 1107 else
1107 { 1108 {