Nginx Proxy timeout
See original GitHub issueYou want to:
- report a bug
- request a feature
Current behaviour
Nginx randomly logs the following error:
upstream timed out (110: Connection timed out) while reading response header from upstream, client: xxxxxx, server: xxxxxxxxx, request: "GET /realtime/?EIO=3&transport=polling&t=xxxxxxxx&sid=xxxxxxxx HTTP/1.1", upstream: "http://127.0.0.1:3000/realtime/?EIO=3&transport=polling&t=xxxxxxxx&sid=xxxxxxxx""
I’m using the same configuration for nginx as on https://github.com/socketio/socket.io/blob/master/examples/cluster-nginx/nginx/nginx.conf.
Steps to reproduce
Start a socket.io server behind a nginx proxy, connect with a client and wait.
Expected behaviour
No errors in nginx error log.
Setup
- OS: All of them
- browser: All of them
- socket.io version: 2.0.1
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:9 (2 by maintainers)
Top Results From Across the Web
How to Increase Request Timeout in NGINX - Ubiq BI
By default, NGINX request timeout is 60 seconds. Sometimes you may need to increase request timeout in NGINX to serve long-running requests.
Read more >Nginx reverse proxy causing 504 Gateway Timeout
I am using Nginx as a reverse proxy that takes requests then does a proxy_pass to get the actual web application from the...
Read more >Module ngx_http_proxy_module - Nginx.org
Defines a timeout for establishing a connection with a proxied server. It should be noted that this timeout cannot usually exceed 75 seconds....
Read more >Adjusting nginx-proxy Timeout Configuration - SSDT Wiki
This sets a 300 second (5 minute) timeout for most timeouts and 90 minutes for read-timeout. The read-timeout may seem excessive. However, when ......
Read more >How to Increase Request Timeout in NGINX - TecAdmin
Sometimes the long running requests failed with the error message “504: Gateway Timeout” in NGINX web server. To solve this issue, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello all,
Sorry for not replying to this for a long time. I’m still experiencing this issue with the latest socket.io version. Also I’m experiencing the exact same issue like @Steveb-p described. Some users randomly can’t connect to my socket.io instance at all. With literally no error in my logs. I asked them to try another browser and then it worked for them again. This happened so far to Edge and Chrome users. So it’s not specific to a browser. But switching the browser helps “fixing” the issue. However, I never encountered this issue myself.
For future readers, please see the documentation here.
Closed due to inactivity, please reopen if needed.