projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c0d84a
)
Stop sending data to the client after the first failure.
author
Glenn L McGrath
<bug1@ihug.co.nz>
Mon, 8 Dec 2003 20:21:53 +0000
(20:21 -0000)
committer
Glenn L McGrath
<bug1@ihug.co.nz>
Mon, 8 Dec 2003 20:21:53 +0000
(20:21 -0000)
Patch by Joe.C
networking/httpd.c
patch
|
blob
|
history
diff --git
a/networking/httpd.c
b/networking/httpd.c
index ba65e13611c5521451e3859d6347f55c7ec03307..1a3f5f94f3a26d96b1c3ce7b75903f47695c5fe0 100644
(file)
--- a/
networking/httpd.c
+++ b/
networking/httpd.c
@@
-1337,7
+1337,8
@@
static int sendFile(const char *url)
sendHeaders(HTTP_OK);
while ((count = bb_full_read(f, buf, MAX_MEMORY_BUFF)) > 0) {
- bb_full_write(a_c_w, buf, count);
+ if (bb_full_write(a_c_w, buf, count) != count)
+ break;
}
close(f);
} else {