[BusyBox-cvs] busybox/networking httpd.c,1.19,1.20
Glenn McGrath
bug1 at busybox.net
Mon Dec 8 20:21:58 UTC 2003
Update of /var/cvs/busybox/networking
In directory winder:/tmp/cvs-serv10234/networking
Modified Files:
httpd.c
Log Message:
Stop sending data to the client after the first failure.
Patch by Joe.C
Index: httpd.c
===================================================================
RCS file: /var/cvs/busybox/networking/httpd.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- httpd.c 6 Oct 2003 13:23:06 -0000 1.19
+++ httpd.c 8 Dec 2003 20:21:53 -0000 1.20
@@ -1337,7 +1337,8 @@
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 {
More information about the busybox-cvs
mailing list