gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] branch master updated (dca52bf1 -> 4f1e02a9)


From: gnunet
Subject: [libmicrohttpd] branch master updated (dca52bf1 -> 4f1e02a9)
Date: Fri, 03 Dec 2021 12:00:44 +0100

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a change to branch master
in repository libmicrohttpd.

    from dca52bf1 test_client_put_stop: don't use fd_sets if select() fails
     new 440809f7 test_client_put_stop: abort test if it is taking too long
     new 4f1e02a9 Fixed doxy for MHD_suspend_connection()

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 src/include/microhttpd.h              | 4 ++--
 src/microhttpd/daemon.c               | 4 ++--
 src/microhttpd/test_client_put_stop.c | 1 +
 3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index 3b755e5d..aedef5de 100644
--- a/src/include/microhttpd.h
+++ b/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
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 9731bf72..4b7df545 100644
--- a/src/microhttpd/daemon.c
+++ b/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
diff --git a/src/microhttpd/test_client_put_stop.c 
b/src/microhttpd/test_client_put_stop.c
index d5589fd7..bb49da07 100644
--- a/src/microhttpd/test_client_put_stop.c
+++ b/src/microhttpd/test_client_put_stop.c
@@ -1504,6 +1504,7 @@ performTestQueries (struct MHD_Daemon *d, int d_port,
     {
       ret |= 1 << 2;
       fprintf (stderr, "FAILED: Test total time exceeded.\n");
+      break;
     }
   }
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]