commit 07fc7a90974e30d3563474225fbda736820c225a
parent c2d9f1413c7a5888f320954c4fbcbb093275a9ca
Author: Joris Vink <joris@coders.se>
Date: Wed, 29 May 2019 15:27:44 +0200
Improve HTTP processing.
If netwait is INFINITE but there are requests pending reduce the
netwait back down to 100ms so we keep processing them.
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/worker.c b/src/worker.c
@@ -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();