Browse Source

[core] adjust http_chunk read() retry loop

personal/stbuehler/ci-build
Glenn Strauss 2 years ago
parent
commit
ef0a211733
  1. 2
      src/http_chunk.c

2
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) {

Loading…
Cancel
Save