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 0fee1247c96f3ead4c42e24297cb4a1903d88fb1
parent 2e3720abc9c1d60f888fe44fd4a825682ea563e1
Author: Joris Vink <joris@coders.se>
Date:   Fri, 12 Jul 2013 15:49:49 +0200

TAILQ_REMOVE() the netbuf before adding it to the HEAD of recv_queue again.

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

diff --git a/src/net.c b/src/net.c @@ -80,6 +80,8 @@ net_recv_expand(struct connection *c, struct netbuf *nb, size_t len, nb->cb = cb; nb->len += len; nb->buf = (u_int8_t *)kore_realloc(nb->buf, nb->len); + + TAILQ_REMOVE(&(c->recv_queue), nb, list); TAILQ_INSERT_HEAD(&(c->recv_queue), nb, list); return (KORE_RESULT_OK);