Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Stop the sendfile loop at the end of a short slot
sendfile returns zero at the end of the file, and the loop only ended once the offset reached the size recorded when the slot was opened, so a slot cut shorter in between spun the request forever.
Diffstat (limited to 'source/cache.c')
-rw-r--r--source/cache.c4
1 file changed, 4 insertions, 0 deletions