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.
This commit is contained in:
Joris Vink 2019-05-29 20:30:43 +02:00
parent 07fc7a9097
commit 88553cd2dd
1 changed files with 3 additions and 0 deletions

View File

@ -313,6 +313,9 @@ http_process(void)
http_process_request(req);
total += req->ms;
if (req->flags & HTTP_REQUEST_DELETE)
http_request_free(req);
}
}