Intermittent Connect Timeout issues when using Cloudflare Proxy

What is the name of the domain?

vivetix.com, itarna.com.ar

What is the error number?

No specific error number.

What is the error message?

Timeout was reached: Connection timed out after 3000 milliseconds (The exact message depends on the client, but it indicates a failure to establish a TCP connection, meaning Cloudflare itself did not complete the connection.)

What is the issue you’re encountering

I am experiencing sporadic connect timeouts when accessing endpoints through Cloudflare Proxy. These errors suggest that Cloudflare fails to establish a TCP connection at all, meaning the request does not even reach the stage where it would be routed to my backend. To diagnose, I set up Zabbix to send requests every 10 seconds with a 3-second timeout, both through Cloudflare and directly to my Load Balancers. I noticed: • Some timeouts happen due to slow backend responses, which is expected. • However, connect timeouts indicate that the TCP handshake itself fails before any request is even sent to my backend. • When bypassing Cloudflare, these errors never occur.

What steps have you taken to resolve the issue?

•	Verified that my backend is always reachable when accessed directly.
•	Increased the timeout in my application, but the connect timeout still occurs.
•	Tested from different locations and found no correlation.
•	Reviewed Cloudflare settings, but found nothing that explains these failures.

What are the steps to reproduce the issue?

1.	Send HTTP requests every 10 seconds to endpoints behind Cloudflare using Zabbix and wait.
2.	Monitor for connect timeout errors where Cloudflare fails to establish a TCP connection at all.
3.	Compare with direct requests to my Load Balancers (which never fail).

This topic was automatically closed after 15 days. New replies are no longer allowed.