6 months ago
I’m seeing recurring WebSocket disconnections (code 1006 ) in my service.
There’s an odd pattern: disconnections spike daily around 5pm eastern, and rarely occur before or after that window. There’s no cause (that I can see) for this in my application, and it doesn't appear to be correlated with resource usage either.
Is there some regular job being run on Railway’s side that may explain this strange pattern or generally cause WebSocket disconnections?
10 Replies
6 months ago
Hello!
We're acknowledging your issue and attaching a ticket to this thread.
We don't have an ETA for it, but, our engineering team will take a look and you will be updated as we update the ticket.
Please reply to this thread if you have any questions!
6 months ago
Hello,
That would be around the time we cycle the proxies. We are aware of this issue and will be looking into mitigations.
Best,
Brody
Status changed to Awaiting User Response Railway • 6 months ago
6 months ago
Appreciate the quick response - anything we can do in the short term? This is impacting our ability to serve customers.
Even just shifting the proxy cycling outside of core business hours, while maybe not a perfect solution, would really help reduce business disruption.
Status changed to Awaiting Railway Response Railway • 6 months ago
6 months ago
Shifting the cycle time of the proxies wouldn't be a solution, unfortunately. It may mitigate the issue for you, but it would just move it to someone else's business hours, so we will opt to keep the time it has always been set to.
A solution could be to deploy the Cloudflare tunnel, thus bypassing our proxy.
https://railway.com/deploy/cf-tunnel
Again, I want to acknowledge that this situation in general is not ideal, and I apologize for that.
Status changed to Awaiting User Response Railway • 6 months ago
6 months ago
This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!
Status changed to Solved Railway • 6 months ago
5 months ago
Hey, small update here. As mentioned, we would restart the proxy every day. We have changed that to be a little more intelligent with those restarts. Now, restarts are performed only when needed. In practice, that means fewer restarts.
Status changed to Awaiting User Response Railway • 5 months ago
5 months ago
This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!
Status changed to Solved Railway • 5 months ago
5 months ago
🛠️ The ticket Websocket traffic disruptions has been marked as triage.
4 months ago
🛠️ The ticket Websocket traffic disruptions has been marked as backlog.
3 months ago
❌ The ticket Websocket traffic disruptions has been marked as canceled.
8 days ago
Hey! Still seeing a massive amount of 1006 disconnects and other networking-related issues. It's been especially rough the past ~two days. Any updates on this? Has something changed recently?
Anything that can be done to mitigate this would be extremely helpful - this is materially impacting our business.
Status changed to Awaiting Railway Response Railway • 8 days ago
7 days ago
We've been pushing updates to our TCP proxy for some upcoming features, so the increased restarts you're seeing recently are expected as part of that work. For resilience, we'd recommend having your clients hold multiple WebSocket connections open and multiplexing data over them. That way, each connection will be cycled at a different time, and the redundancy ensures your clients don't drop an entire data transmission when one connection closes.
Status changed to Awaiting User Response Railway • 7 days ago
6 hours ago
This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!
Status changed to Solved Railway • about 6 hours ago