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:
Joris Vink 2019-05-29 15:27:44 +02:00
parent c2d9f1413c
commit 07fc7a9097
1 changed files with 4 additions and 0 deletions

View File

@ -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();