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 257486d74adc52193f58e9c278452a87f113338c
parent 8c22f0f0048aab8c56a5fc5662c0e344af1d7f85
Author: Joris Vink <joris@coders.se>
Date:   Sun, 27 Jul 2014 21:01:14 +0200

Remove req from http_requests before other things

Diffstat:
src/connection.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/connection.c b/src/connection.c @@ -251,9 +251,9 @@ kore_connection_remove(struct connection *c) for (req = TAILQ_FIRST(&(c->http_requests)); req != NULL; req = rnext) { rnext = TAILQ_NEXT(req, olist); + TAILQ_REMOVE(&(c->http_requests), req, olist); req->flags |= HTTP_REQUEST_DELETE; http_request_wakeup(req); - TAILQ_REMOVE(&(c->http_requests), req, olist); } for (nb = TAILQ_FIRST(&(c->send_queue)); nb != NULL; nb = next) {