[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [libmicrohttpd] 01/05: call_handlers(): no need to call rea
From: |
gnunet |
Subject: |
[GNUnet-SVN] [libmicrohttpd] 01/05: call_handlers(): no need to call read or write handler in case of hard error |
Date: |
Sun, 19 Feb 2017 21:11:30 +0100 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit f05715b71f2ca4096f0b90e0e7bbfc3da1137e86
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Sun Feb 19 19:00:23 2017 +0300
call_handlers(): no need to call read or write handler in case of hard error
---
src/microhttpd/daemon.c | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index c83a51d5..d9c211ee 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -899,13 +899,17 @@ call_handlers (struct MHD_Connection *con,
if (con->tls_read_ready)
read_ready = MHD_YES;
#endif /* HTTPS_SUPPORT */
- if (read_ready)
- con->read_handler (con);
- if (write_ready)
- con->write_handler (con);
- if (force_close)
+ if (!force_close)
+ {
+ if (read_ready)
+ con->read_handler (con);
+ if (write_ready)
+ con->write_handler (con);
+ }
+ else
MHD_connection_close_ (con,
MHD_REQUEST_TERMINATED_WITH_ERROR);
+
ret = con->idle_handler (con);
/* Fast track for fast connections. */
--
To stop receiving notification emails like this one, please contact
address@hidden