Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Gunicorn 19.4.1 : connection closed too early when serving static file #1155
first thanks for Gunicorn !
Some info :
Here are the Gunicorn log file in debug mode
Which were created with this shell call :
Thanks you !
No problem for the regression, you do a really great job so it's fine by me.
I added some custom logging, and here what I got :
So the libc.sendfile in _sendfile.py is not sending everything in one shot as expected by the current loop :
for m in range(0, nbytes, BLKSIZE): count = min(nbytes - sent, BLKSIZE) sent += sendfile(sockno, fileno, offset + sent, count)