commit dc6e6fb1b47d610e9a1d695fe28877e42c083360
parent 4c39ac43fbbaf67a280d31372ddbe1f087429d11
Author: Joris Vink <joris@coders.se>
Date: Tue, 21 Apr 2015 11:30:59 +0200
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.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git 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;