Sfoglia il codice sorgente

Fixed doxy for MHD_suspend_connection()

Evgeny Grin (Karlson2k) 4 anni fa
parent
commit
4f1e02a99e
2 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 2 2
      src/include/microhttpd.h
  2. 2 2
      src/microhttpd/daemon.c

+ 2 - 2
src/include/microhttpd.h

@@ -3221,8 +3221,8 @@ MHD_queue_response (struct MHD_Connection *connection,
  * connection is suspended, MHD will not detect disconnects by the
  * client.
  *
- * The only safe time to suspend a connection is from the
- * #MHD_AccessHandlerCallback.
+ * The only safe way to call this function is to call it from the
+ * #MHD_AccessHandlerCallback or #MHD_ContentReaderCallback.
  *
  * Finally, it is an API violation to call #MHD_stop_daemon while
  * having suspended connections (this will at least create memory and

+ 2 - 2
src/microhttpd/daemon.c

@@ -3143,8 +3143,8 @@ internal_suspend_connection_ (struct MHD_Connection *connection)
  * connection is suspended, MHD will not detect disconnects by the
  * client.
  *
- * The only safe time to suspend a connection is from the
- * #MHD_AccessHandlerCallback.
+ * The only safe way to call this function is to call it from the
+ * #MHD_AccessHandlerCallback or #MHD_ContentReaderCallback.
  *
  * Finally, it is an API violation to call #MHD_stop_daemon while
  * having suspended connections (this will at least create memory and