mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
Added detection of more conditions to process the data without waiting
If no new or current connections are pending to be processed, it is a good moment to perform some internal maintenance, like cleanup
This commit is contained in:
@@ -4205,9 +4205,12 @@ MHD_get_timeout64 (struct MHD_Daemon *daemon,
|
||||
#endif
|
||||
return MHD_NO;
|
||||
}
|
||||
if (daemon->data_already_pending)
|
||||
if (daemon->data_already_pending
|
||||
|| (NULL != daemon->cleanup_head)
|
||||
|| daemon->resuming
|
||||
|| daemon->have_new)
|
||||
{
|
||||
/* Some data already waiting to be processed. */
|
||||
/* Some data or connection statuses already waiting to be processed. */
|
||||
*timeout64 = 0;
|
||||
return MHD_YES;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user