gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [libmicrohttpd] branch master updated: process_urh(): clari


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] branch master updated: process_urh(): clarified comment
Date: Tue, 14 Mar 2017 08:28:36 +0100

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

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

The following commit(s) were added to refs/heads/master by this push:
     new cd54b873 process_urh(): clarified comment
cd54b873 is described below

commit cd54b87353511330fe5a4deeecaa7490d6e9203b
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Tue Mar 14 10:27:03 2017 +0300

    process_urh(): clarified comment
---
 src/microhttpd/daemon.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index b89c3d57..c33455ac 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -1200,7 +1200,9 @@ process_urh (struct MHD_UpgradeResponseHandle *urh)
    * each time. */
   struct MHD_Connection * const connection = urh->connection;
   struct MHD_Daemon * const daemon = connection->daemon;
-  /* Prevent data races. */
+  /* Prevent data races: use same value of 'was_closed' throughout
+   * this function. If 'was_closed' changed externally in the middle
+   * of processing - it will be processed on next iteration. */
   bool was_closed;
   if (daemon->shutdown)
     {

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

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