diff options
author | Glenn L McGrath | 2003-12-08 20:21:53 +0000 |
---|---|---|
committer | Glenn L McGrath | 2003-12-08 20:21:53 +0000 |
commit | 9adcf73152e1cb4d537d3ff713abe9d1c51171dd (patch) | |
tree | 00985e771237f0d4701228e76d23e20d1c6c3a9b /networking | |
parent | 5c0d84aaf02b621477c1d80f350fe56ed05ab585 (diff) | |
download | busybox-9adcf73152e1cb4d537d3ff713abe9d1c51171dd.zip busybox-9adcf73152e1cb4d537d3ff713abe9d1c51171dd.tar.gz |
Stop sending data to the client after the first failure.
Patch by Joe.C
Diffstat (limited to 'networking')
-rw-r--r-- | networking/httpd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/httpd.c b/networking/httpd.c index ba65e13..1a3f5f9 100644 --- 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 { |