I'm running nginx 1.9.3. When downloading a large file (in this case, 1GiB), and reloading nginx via "nginx -s reload", the download gets interrupted in numerous browsers, including (but potentially not limited to), Opera, Google Chrome, and Firefox.
With curl and standard flags (no extra headers, just the file URL), the download works fine, and is not interrupted.
server {
listen 443 ssl spdy;
include tls.conf;
server_name example.com;
root /var/www/dl;
access_log logs/dl.access.log;
error_log logs/dl.error.log;
error_page 403 https://example.com;
}
As I understand it, the nginx processes should wait for any requests to complete before terminating themselves, so I'm not entirely sure why this is happening. If anyone could supply my brain with the extra knowledge or point me to some relevant directives in the nginx documentation, I would love to get this fixed. :-)
keepalive_timeout 0;)