From: Andre Date: Wed, 31 May 2006 21:04:14 +0000 (+0200) Subject: http_recv: set the eof flag on buffer overruns. X-Git-Tag: v0.2.14~91 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=63ea5c449c9d944ffcfea2bba906ef42679fa996;ds=sidebyside http_recv: set the eof flag on buffer overruns. --- 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) {