Binary stream upload through NGINX blocks all other POST requests to Node.js app -


i'm running application accepts large file uploads, should allow user make other post requests same app while upload progress.

the app running on node.js, upload being handled formidable , s3stream directly stream binary content s3 without using disk space on server.

it seems nginx configuration issue, else works fine locally.

my current nginx config looks this:

server {     listen 443 ssl http2;     server_name upload.app.io;     underscores_in_headers on;      location / {         proxy_request_buffering off;         proxy_pass http://localhost:3000;         proxy_http_version 1.1;         proxy_set_header upgrade $http_upgrade;         proxy_set_header connection 'upgrade';         proxy_set_header host $host;         proxy_cache_bypass $http_upgrade;     }      ssl_certificate /etc/nginx/ssl/ca-bundle.crt;     ssl_certificate_key /etc/nginx/ssl/server.key; } 

so why nginx blocks parallel post requests while upload in progress, , how overcome problem?

to clarify, nginx not throw error, rather hangs requests until times out.

greatly appreciate this.

client_max_body_size 10m;enter link description here


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -