← Commit list

9adcf7315

Glenn L McGrath
Glenn L McGrath
2003-12-08
FAILED Duration: 134s

Subject

Stop sending data to the client after the first failure. Patch by Joe.C

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/httpd.c+2 -1
@@ -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 {