aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-02-19 19:14:16 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-02-19 23:10:51 +0300
commit0e0822dd3e6e7b3c3a1ff1f2501fe40481932429 (patch)
tree5ef35fe9f30e7dbdb34716462068ec20fedba8ef /src/microhttpd
parent58cb96811cb46ab88ef2cffca87fd45df76f78ae (diff)
downloadlibmicrohttpd-0e0822dd3e6e7b3c3a1ff1f2501fe40481932429.tar.gz
libmicrohttpd-0e0822dd3e6e7b3c3a1ff1f2501fe40481932429.zip
call_handlers(): call read/write handlers only if connections is in read/write mode
Diffstat (limited to 'src/microhttpd')
-rw-r--r--src/microhttpd/daemon.c4
1 files 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,
895#endif /* HTTPS_SUPPORT */ 895#endif /* HTTPS_SUPPORT */
896 if (!force_close) 896 if (!force_close)
897 { 897 {
898 if (read_ready) 898 if (MHD_EVENT_LOOP_INFO_READ == con->event_loop_info && read_ready)
899 con->read_handler (con); 899 con->read_handler (con);
900 if (write_ready) 900 if (MHD_EVENT_LOOP_INFO_WRITE == con->event_loop_info && write_ready)
901 con->write_handler (con); 901 con->write_handler (con);
902 } 902 }
903 else 903 else