How long before timeout?


#1

Ok, I’m basicly having some API-like urls, where the app will wait until something happens, or an amount of time :watch: set in a parameter runs out. That brings me to a question:
How long does it take for glitch to auto-return 504?


#2

So you’re trying to send a request that the app doesn’t answer for a long time? I think a better way for you to handle this would be using websockets. You can establish the connection, and then the server can send a message to the client at the right time.


#3

Thanks for the tip! Given that this is one-time code for a school project and that my solution is still pretty elegant (I think :grinning:), I probably won’t change it. But I will definely use it in the future!