From dc6e6fb1b47d610e9a1d695fe28877e42c083360 Mon Sep 17 00:00:00 2001 From: Joris Vink Date: Tue, 21 Apr 2015 11:30:59 +0200 Subject: [PATCH] Kill NETBUF_CALL_CB_ALWAYS for incoming HTTP body Do not let the NETBUF_CALL_CB_ALWAYS flag linger in the netbuf we reset for the incoming HTTP body. --- src/http.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/http.c b/src/http.c index 2b93496..8b59881 100644 --- a/src/http.c +++ b/src/http.c @@ -666,8 +666,9 @@ http_header_recv(struct netbuf *nb) if (bytes_left > 0) { kore_debug("%ld/%ld (%ld - %ld) more bytes for body", bytes_left, clen, nb->s_off, len); - c->rnb->extra = req; net_recv_reset(c, bytes_left, http_body_recv); + c->rnb->extra = req; + c->rnb->flags &= ~NETBUF_CALL_CB_ALWAYS; } else if (bytes_left == 0) { req->flags |= HTTP_REQUEST_COMPLETE; req->flags &= ~HTTP_REQUEST_EXPECT_BODY;