From 63ea5c449c9d944ffcfea2bba906ef42679fa996 Mon Sep 17 00:00:00 2001 From: Andre Date: Wed, 31 May 2006 23:04:14 +0200 Subject: [PATCH] http_recv: set the eof flag on buffer overruns. --- http_recv.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) { -- 2.39.5