X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=http_recv.c;h=264ae2c299c389ed59d1ee7b85424753b799fe7e;hp=a681a003dadf83f4d8ce3763f794e5215e3a8de1;hb=63ea5c449c9d944ffcfea2bba906ef42679fa996;hpb=f23be61d476e3f354e31072da0e0e77050a8dc56 diff --git a/http_recv.c b/http_recv.c index a681a003..264ae2c2 100644 --- a/http_recv.c +++ b/http_recv.c @@ -142,8 +142,10 @@ static void http_recv_post_select(struct sched *s, struct task *t) } t->ret = -E_OVERRUN; /* already streaming */ - if (rn->loaded >= BUFSIZE) + if (rn->loaded >= BUFSIZE) { + rn->eof = 1; return; + } t->ret = recv_bin_buffer(phd->fd, rn->buf + rn->loaded, BUFSIZE - rn->loaded); if (t->ret <= 0) {