Fix http_recv.
authorAndre Noll <maan@systemlinux.org>
Mon, 28 Dec 2009 22:03:31 +0000 (23:03 +0100)
committerAndre Noll <maan@systemlinux.org>
Mon, 28 Dec 2009 22:03:31 +0000 (23:03 +0100)
http_recv.c

index f7796d4..bedd989 100644 (file)
@@ -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)