Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't download large file via Nginx+uWSGI #3

Closed
myeonggyunhan opened this issue Sep 14, 2015 · 3 comments
Closed

Can't download large file via Nginx+uWSGI #3

myeonggyunhan opened this issue Sep 14, 2015 · 3 comments

Comments

@myeonggyunhan
Copy link
Owner

This problem is not occurred when using default django server.
(e.g. python manage.py runserver 0.0.0.0:8000)

When run Django on Nginx + uWSGI, downloading large file (larger than 1GB) is automatically truncate to 1GB.

This is maybe same problem.

@hahnlee
Copy link

hahnlee commented Jul 16, 2016

How about change nginx setting
eg.
location / { proxy_max_temp_file_size 1924m; }

@myeonggyunhan
Copy link
Owner Author

Thank you for your comment!
Okay, after testing that setting, I will report the result here.
However, I think current download implementation is not good and has a problem.
So I have a plan to change download implementation such as using Nginx's X-Accel or using other projects (e.g. [1], [2]) and I think this will solve this problem.

@myeonggyunhan
Copy link
Owner Author

This issue is fixed by using other project (django-sendfile)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants