commit 192f1e9fab410e9fea914d2a4eefcfadd2180e78
parent 9fec9b35ec46ce51cdda1f7e264f48b9f02f2f4d
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Sun, 19 Mar 2017 11:46:22 +0300
call_handlers(): added clarifying comment.
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
@@ -1203,6 +1203,9 @@ call_handlers (struct MHD_Connection *con,
* zero timeout for next select()/poll(). */
/* Thread-per-connection do not need global zero timeout as
* connections are processed individually. */
+ /* Note: no need to check for read buffer availability for
+ * TLS read-ready connection in 'read info' state as connection
+ * without space in read buffer will be market as 'info block'. */
if ( (!con->daemon->data_already_pending) &&
(0 == (con->daemon->options & MHD_USE_THREAD_PER_CONNECTION)) )
{