Cloudflare Websocket Timeout?

Hello! I’m currently testing out passing websocket connections through Cloudflare. They’re working great but I have a problem where they persistently die after exactly 1 minute and 40 seconds, always.

I have my own nginx server set to timeout after 5 minutes, so it’s not a problem on my end. Either this is a Chrome limitation or something on Cloudflare’s end, at least - I think so. Does anyone know the exact timeout limit for websockets passed through Cloudflare, does upgrading to Pro remove this timeout?

Thanks!

100 seconds is the standard timeout setting. Only ENT users have the option to adjust duration.
https://support.cloudflare.com/hc/en-us/articles/200171926-Error-524-A-timeout-occurred

2 Likes

Thanks, we resolved the issue by adding a keepalive healthcheck to our application so the connection is kept active. :slight_smile:

1 Like

The problem of how you solve, is facing the same problem.

thank you.

I am facing similar issue and mentioned solution and details with steps here:

Could you please share how did you solve this issue in your code? Thx. We got same issues using standard plan and prefer to add healthycheck in code.