gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] branch master updated: MHD_send_sendfile_: Fixed wrong s


From: gnunet
Subject: [libmicrohttpd] branch master updated: MHD_send_sendfile_: Fixed wrong send size.
Date: Tue, 22 Dec 2020 02:00:09 +0100

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

The following commit(s) were added to refs/heads/master by this push:
     new 736fe430 MHD_send_sendfile_: Fixed wrong send size.
736fe430 is described below

commit 736fe430cb7d54e40bd65879adf2f4585350a1f3
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Tue Dec 22 03:59:26 2020 +0300

    MHD_send_sendfile_: Fixed wrong send size.
    
    Fixed typo, 9e45e2486f4e24552439cef43d61d841229a8fea regression
---
 src/microhttpd/mhd_send.c | 5 +++--
 1 file 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)
 
   left = connection->response->total_size - 
connection->response_write_position;
 
-  if ( (uint64_t) SSIZE_MAX > left)
+  if ( (uint64_t) SSIZE_MAX < left)
     left = SSIZE_MAX;
+
   /* Do not allow system to stick sending on single fast connection:
    * use 128KiB chunks (2MiB for thread-per-connection). */
   if (chunk_size < left)
   {
     send_size = chunk_size;
-    push_data = false; /* No need to push data, there is more to send, */
+    push_data = false; /* No need to push data, there is more to send. */
   }
   else
   {

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]