From ffae69dbd7268de640f811c2ec0a4e31fd9c6e93 Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Mon, 19 Feb 2024 14:17:40 +0500 Subject: [PATCH] MHD_queue_response(): do not return MHD_YES when shutting down the daemon Provide correct information for application about queue status --- src/microhttpd/connection.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index 5d3568a1..a63c5ebc 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c @@ -7882,8 +7882,7 @@ MHD_queue_response (struct MHD_Connection *connection, return MHD_NO; /* Wrong connection state */ if (daemon->shutdown) - return MHD_YES; /* If daemon was shut down in parallel, - * response will be aborted now or on later stage. */ + return MHD_NO; #ifdef UPGRADE_SUPPORT if (NULL != response->upgrade_handler)