X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=http_recv.c;h=264ae2c299c389ed59d1ee7b85424753b799fe7e;hb=d46fe38dcada4108ed49a0e621376df0f7913fe3;hp=a681a003dadf83f4d8ce3763f794e5215e3a8de1;hpb=f23be61d476e3f354e31072da0e0e77050a8dc56;p=paraslash.git 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) {