summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2019-05-18 13:02:59 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2019-05-18 13:02:59 -0400
commitef0a2117331ef9d2428f27fe208a5aafa3a4df72 (patch)
tree55f57fbf9316d574ccbe309590d6f3bfbbe1c6fa
parentcb1c49a74a1e63bbb2a8572a8c0b06e45d80668b (diff)
downloadlighttpd1.4-master.zip
lighttpd1.4-master.tar.gz
[core] adjust http_chunk read() retry loopHEADpersonal/gstrauss/mastermaster
-rw-r--r--src/http_chunk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http_chunk.c b/src/http_chunk.c
index e973d6e..87af3e7 100644
--- a/src/http_chunk.c
+++ b/src/http_chunk.c
@@ -62,7 +62,7 @@ static int http_chunk_append_read_fd_range(server *srv, connection *con, buffer
offset = 0;
do {
rd = read(fd, b->ptr+offset, len-offset);
- } while ((rd > 0 && (offset += rd, len -= rd)) || errno == EINTR);
+ } while (rd > 0 ? (offset += rd, len -= rd) : errno == EINTR);
buffer_commit(b, offset);
if (con->response.send_chunked) {