file upload - disable request buffering in nginx -


it seems nginx buffers requests before passing updstream server,while ok cases me bad :)

my case this:

i have nginx frontend server proxy 3 different servers:

  1. apache typical php app
  2. shaveet(a open source comet server) built me python , gevent
  3. a file upload server built again gevent proxies uploads rackspace cloudfiles while accepting upload client.

#3 problem, right have nginx buffers request , sends file upload server in turn sends cloudfiles instead of sending each chunk gets (those making upload faster can push 6-7mb/s cloudfiles).

the reason use nginx have 3 different domains 1 ip if can't have move fileupload server machine.

according gunicorn, suggest use nginx buffer clients , prevent slowloris attacks. buffering thing. however, see option further down on link provided talks removing proxy buffer, it's not clear if within nginx or not, looks though is. of course under assumption have gunicorn running, not. perhaps it's still useful you.

edit: did research , buffer disable in nginx outbound, long-polling data. nginx states on wiki site inbound requests have buffered before being sent upstream.

"note when using http proxy module (or when using fastcgi), entire client request buffered in nginx before being passed on backend proxied servers. result, upload progress meters not function correctly if work measuring data received backend servers."


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -