mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
MHD_queue_response(): do not return MHD_YES when shutting down the daemon
Provide correct information for application about queue status
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user