aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/internal.h
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-06-08 20:35:29 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-06-08 20:35:29 +0300
commit3eb2fb6dfb302a7ffbc74174d37fa047e3a94036 (patch)
treee48f7d0fee39996ff12bb2f9402d078c919dd138 /src/microhttpd/internal.h
parentc8b7b8fed96c513c82b2da9037206daccf3eb492 (diff)
downloadlibmicrohttpd-3eb2fb6dfb302a7ffbc74174d37fa047e3a94036.tar.gz
libmicrohttpd-3eb2fb6dfb302a7ffbc74174d37fa047e3a94036.zip
Fixed very rare data races when closing upgraded connection
Diffstat (limited to 'src/microhttpd/internal.h')
-rw-r--r--src/microhttpd/internal.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h
index 92fa932b..cd1cdaec 100644
--- a/src/microhttpd/internal.h
+++ b/src/microhttpd/internal.h
@@ -2482,4 +2482,17 @@ MHD_get_master (struct MHD_Daemon *const daemon)
2482} 2482}
2483 2483
2484 2484
2485#ifdef UPGRADE_SUPPORT
2486/**
2487 * Mark upgraded connection as closed by application.
2488 *
2489 * The @a connection pointer must not be used after call of this function
2490 * as it may be freed in other thread immediately.
2491 * @param connection the upgraded connection to mark as closed by application
2492 */
2493void
2494upgraded_connection_mark_app_closed_ (struct MHD_Connection *connection);
2495#endif /* UPGRADE_SUPPORT */
2496
2497
2485#endif 2498#endif