python pyramid set throttle policy in download request -


when client request download

example.com/media/files/test.mp4

if large file 1gb 3gb, user request drop in middle. server got hanged , other user can not download file.i want set throttle bandwidth limit single user session in every request.

you should use front end web server nginx throttling:

http://nginx.org/en/docs/http/ngx_http_limit_req_module.html

python wsgi application not suitable this, specialized front end web servers can better.


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -