Suspend/resume: added some asserts

This commit is contained in:
Evgeny Grin (Karlson2k)
2025-04-02 13:57:43 +03:00
parent 523bf940d1
commit 2a6b6dc08f
+6
View File
@@ -357,6 +357,7 @@ daemon_process_all_active_conns (struct MHD_Daemon *restrict d)
mhd_conn_remove_from_daemon (c);
mhd_conn_close_final (c);
}
mhd_assert (! c->resuming || c->suspended);
c = next;
}
@@ -479,6 +480,9 @@ ext_events_process_net_updates (struct MHD_Daemon *restrict d)
c = mhd_DLINKEDL_GET_NEXT (c,all_conn))
{
bool has_err_state;
mhd_assert (! c->resuming || c->suspended);
if (is_conn_excluded_from_http_comm (c))
continue;
@@ -581,6 +585,8 @@ ext_events_update_registrations (struct MHD_Daemon *restrict d)
from the daemon. */
c_next = mhd_DLINKEDL_GET_NEXT (c,all_conn);
mhd_assert (! c->resuming || c->suspended);
if (is_conn_excluded_from_http_comm (c))
{
if (NULL != c->extr_event.app_cntx)