gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [libmicrohttpd] 05/05: call_handlers(): call read/write han


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] 05/05: call_handlers(): call read/write handlers only if connections is in read/write mode
Date: Sun, 19 Feb 2017 21:11:34 +0100

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

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 0e0822dd3e6e7b3c3a1ff1f2501fe40481932429
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Sun Feb 19 19:14:16 2017 +0300

    call_handlers(): call read/write handlers only if connections is in 
read/write mode
---
 src/microhttpd/daemon.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index e71a047c..fcd70ce1 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -895,9 +895,9 @@ call_handlers (struct MHD_Connection *con,
 #endif /* HTTPS_SUPPORT */
   if (!force_close)
     {
-      if (read_ready)
+      if (MHD_EVENT_LOOP_INFO_READ == con->event_loop_info && read_ready)
         con->read_handler (con);
-      if (write_ready)
+      if (MHD_EVENT_LOOP_INFO_WRITE == con->event_loop_info && write_ready)
         con->write_handler (con);
     }
   else

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

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