libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit cd54b87353511330fe5a4deeecaa7490d6e9203b
parent 59268ccff1583c06d215baef5423aac5c78c0c02
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Tue, 14 Mar 2017 10:27:03 +0300

process_urh(): clarified comment

Diffstat:
Msrc/microhttpd/daemon.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 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) {