kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

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:
src/worker.c | 4++++
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();