Sleep a lot

See how Glitch handles apps that are slow to respond to requests. Useful for debugging timeouts in our services and infrastructure.

url description example
/sleep?ms=<NUMBER> Sleep for ms milliseconds and then return a response. Useful for testing the various timeouts that we have when routing a request all the way from the client to the Glitch project. https://sleep-a-lot.glitch.me/sleep?ms=1000, https://sleep-a-lot.glitch.me/sleep?ms=130000
/timeout?ms=<NUMBER> The application closes the connection after ms milliseconds. Useful for testing how we handle projects that close their connection before our timeout is triggered. https://sleep-a-lot.glitch.me/timeout?ms=1000