alphagov / notifications-api

GOV.UK Notify API
https://www.notifications.service.gov.uk/documentation
MIT License
65 stars 25 forks source link

`EventletTimeoutMiddleware`: set timeout to 30s, wrap `application.wsgi_app` #4218

Closed risicle closed 1 month ago

risicle commented 1 month ago

30s is what we've decided to set our cloudfront timeouts to.

Wrapping application.wsgi_app is more correct than wrapping application itself, as it preserves flasky behaviours of the outer application object.