Cloudflare Times out

Hello, I was testing my API that is proxied by cloudflare on AWS, and I noticed that my API is very slow, and it needs more than 60 seconds to respond. however cloudflare terminates the connection excatly after 60 seconds and returns error 504. after checking the docs. it says that it allows up to 90 seconds, so what’s up with that?
I know I should fix my API, but I want to know why it only allowed 60 seconds and not 90? As far as I know, only enterprise users can change the timeout settings...
1 Reply
penny
pennyOP3w ago
I'm saying 90 cause it only talks about 522 but not 504:
Two different timeouts cause HTTP error 522 depending on when they occur between Cloudflare and the origin web server:
Before a connection is established, the origin web server does not return a SYN+ACK to Cloudflare within 19 seconds of Cloudflare sending a SYN.
After a connection is established, the origin web server does not acknowledge (ACK) Cloudflare's resource request within 90 seconds.
Two different timeouts cause HTTP error 522 depending on when they occur between Cloudflare and the origin web server:
Before a connection is established, the origin web server does not return a SYN+ACK to Cloudflare within 19 seconds of Cloudflare sending a SYN.
After a connection is established, the origin web server does not acknowledge (ACK) Cloudflare's resource request within 90 seconds.

Did you find this page helpful?