From ebc3f5891079568a0b0e120e1504170bd6000f78 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 28 Dec 2009 23:03:31 +0100 Subject: [PATCH] Fix http_recv. --- http_recv.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/http_recv.c b/http_recv.c index f7796d4a..bedd989e 100644 --- a/http_recv.c +++ b/http_recv.c @@ -156,6 +156,9 @@ static void http_recv_post_select(struct sched *s, struct task *t) BUFSIZE - rn->loaded); if (t->error == 0) t->error = -E_RECV_EOF; + if (t->error < 0) + return; + rn->loaded += t->error; } static void http_recv_close(struct receiver_node *rn) -- 2.39.5