mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
Fixed select() mode broken by ef8959ea77
Commit "Fixed connections resume interference with processing network states" introduced wrong changes. Fixed now.
This commit is contained in:
@@ -922,6 +922,7 @@ select_update_statuses_from_fdsets_and_resume_conn (struct MHD_Daemon *d,
|
||||
resuming_conn = d->threading.resume_requested;
|
||||
if (resuming_conn)
|
||||
{
|
||||
mhd_assert (mhd_DAEMON_TYPE_LISTEN_ONLY != d->threading.d_type);
|
||||
num_events = (int) -1; /* Force process all connections */
|
||||
d->threading.resume_requested = false;
|
||||
}
|
||||
@@ -990,10 +991,8 @@ select_update_statuses_from_fdsets_and_resume_conn (struct MHD_Daemon *d,
|
||||
}
|
||||
}
|
||||
|
||||
mhd_assert ((0 == num_events) || resuming_conn || \
|
||||
mhd_assert ((0 == num_events) || \
|
||||
(mhd_DAEMON_TYPE_LISTEN_ONLY != d->threading.d_type));
|
||||
if (mhd_DAEMON_TYPE_LISTEN_ONLY != d->threading.d_type)
|
||||
return true;
|
||||
|
||||
#ifdef MHD_FAVOR_SMALL_CODE
|
||||
(void) num_events;
|
||||
|
||||
Reference in New Issue
Block a user