Stop sending data to the client after the first failure.
Patch by Joe.C
This commit is contained in:
parent
5c0d84aaf0
commit
9adcf73152
@ -1337,7 +1337,8 @@ static int sendFile(const char *url)
|
|||||||
|
|
||||||
sendHeaders(HTTP_OK);
|
sendHeaders(HTTP_OK);
|
||||||
while ((count = bb_full_read(f, buf, MAX_MEMORY_BUFF)) > 0) {
|
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);
|
close(f);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user