mirror of https://git.kore.io/kore.git
Improve HTTP processing.
If netwait is INFINITE but there are requests pending reduce the netwait back down to 100ms so we keep processing them.
This commit is contained in:
parent
c2d9f1413c
commit
07fc7a9097
|
@ -428,6 +428,10 @@ kore_worker_entry(struct kore_worker *kw)
|
|||
}
|
||||
|
||||
netwait = kore_timer_next_run(now);
|
||||
|
||||
if (netwait == KORE_WAIT_INFINITE && http_request_count > 0)
|
||||
netwait = 100;
|
||||
|
||||
kore_platform_event_wait(netwait);
|
||||
now = kore_time_ms();
|
||||
|
||||
|
|
Loading…
Reference in New Issue