Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Nginx as proxy to Node.js - weird issue

$
0
0
Hi,

I have nginx set up as proxy to node.js for long polling like this:

location /node1 {
access_log off;
log_not_found off;
proxy_pass http://127.0.0.1:3001/node;
proxy_buffering off;
proxy_read_timeout 60;
break;
}

Unfortunately about half of long poll requests returns with error and empty response. I verified that is nginx issue as polling node.js directly with curl is always working and polling through website is reproing the issue. My version of nginx is the one dreamhost offers v.0.8.53.

Do you know how can I mitigate the issue and what can be the problem? The other GET, non-polling requests that are going same route are working just fine so I suspect some timeout issue. The long poll is set up for about 30 seconds in node.

Thanks for any help!

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>