projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c47cdc9
)
http_recv: set the eof flag on buffer overruns.
author
Andre
<maan@p133.(none)>
Wed, 31 May 2006 21:04:14 +0000
(23:04 +0200)
committer
Andre
<maan@p133.(none)>
Wed, 31 May 2006 21:04:14 +0000
(23:04 +0200)
http_recv.c
patch
|
blob
|
history
diff --git
a/http_recv.c
b/http_recv.c
index a681a003dadf83f4d8ce3763f794e5215e3a8de1..264ae2c299c389ed59d1ee7b85424753b799fe7e 100644
(file)
--- 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) {