diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2021-09-21 05:44:44 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2021-09-30 17:34:03 -0400 |
commit | 2e60c4e0b25fa3d55213a6e6b4a67028b2b1f517 (patch) | |
tree | 0d185c3663ef119f4d027f6c6d8b01ea42ef47cd /configure.ac | |
parent | d530a49d389fe5cf0027ff74ef723220ef43f5db (diff) | |
download | lighttpd-git-2e60c4e0b25fa3d55213a6e6b4a67028b2b1f517.tar.gz |
[core] remove redundant checks for tempfile chunk
remove redundant checks for tempfile chunk reuse
c->file.is_temp is only set if c->type == FILE_CHUNK is also true
The test for (0 == c->offset) is historical. Before the temporary files
were opened O_APPEND (or written to using pwrite()), the file offset may
have changed via lseek() if lighttpd had started reading the file to
send to the client. To avoid this, the (0 == c->offset) check was used
as a quick check to avoid continuing to write to a temporary file that
lighttpd had begun to read.
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions