Truncated File Downloads with Nginx and X-Accel-Redirect

view story

http://serverfault.com – I am serving large zip files to users (about 50 mb) after they authenticated using the X-Accel-Redirect header and Nginx. It seems users (especially those with slower connections) are only downloading a few megabytes and then the download completes. Are there an settings in Nginx I can set to prevent this from happening? (HowTos)