I have a website that offer downloads of some large files, up to 10gb.
There is an issue with the downloads that doesn't happen to me, and actually doesn't happen to most of my users, but I keep getting messages from some users that their downloads stop at 2gb, and the file is larger that that.
I serve the downloads using nginx XSendfile with php:
header('X-Accel-Cache-Control: no-store, no-cache, must-revalidate');
header('Pragma: no-cache');
header('Content-Type: application/octet-stream');
header('Content-Length: ' . $this->getFileSize() );
header('Content-Disposition: attachment; filename="' . $fileName . '"');
header('Accept-Ranges: bytes');
header('X-Accel-Buffering: yes');
header('X-Accel-Redirect: ' . $this->getServeDownloadLocation());
Running on CentOS 6.6, php 5.5.22, nginx 1.6.2.
Notice: the users don't use old browsers, they use modern browsers like Google Chrome.