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 88553cd2dd03b34db988e25772691085c4929482
parent 07fc7a90974e30d3563474225fbda736820c225a
Author: Joris Vink <joris@coders.se>
Date:   Wed, 29 May 2019 20:30:43 +0200

Immediately remove completed HTTP requests.

No need to wait until the next time http_process() is called, which
could result in HTTP requests backing up even though we are processing
them at a fast pace.

Diffstat:
src/http.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/http.c b/src/http.c @@ -313,6 +313,9 @@ http_process(void) http_process_request(req); total += req->ms; + + if (req->flags & HTTP_REQUEST_DELETE) + http_request_free(req); } }