How does the `connectTimeout` setting in `cloudflared` affect '502 Bad Gateway' errors?

Question

Grade: Education Subject: Support
How does the `connectTimeout` setting in `cloudflared` affect '502 Bad Gateway' errors?
Asked by:
87 Viewed 87 Answers

Answer (87)

Best Answer
(281)
The `connectTimeout` specifies how long `cloudflared` will wait to establish a connection with your origin server. If this value is too short, and your origin server takes longer to respond, `cloudflared` might time out, leading to a '502 Bad Gateway' error reported by Cloudflare.