Parcourir la source

call_handlers(): added clarifying comment.

Evgeny Grin (Karlson2k) il y a 9 ans
Parent
commit
192f1e9fab
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      src/microhttpd/daemon.c

+ 3 - 0
src/microhttpd/daemon.c

@@ -1203,6 +1203,9 @@ call_handlers (struct MHD_Connection *con,
    * zero timeout for next select()/poll(). */
    * zero timeout for next select()/poll(). */
   /* Thread-per-connection do not need global zero timeout as
   /* Thread-per-connection do not need global zero timeout as
    * connections are processed individually. */
    * 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) &&
   if ( (!con->daemon->data_already_pending) &&
        (0 == (con->daemon->options & MHD_USE_THREAD_PER_CONNECTION)) )
        (0 == (con->daemon->options & MHD_USE_THREAD_PER_CONNECTION)) )
     {
     {