#34159: Django potential improvement - views decorator for http_timeout with
auto
retry
-------------------------------------+-------------------------------------
Reporter: JDonMc | Owner: nobody
Type: New feature | Status: closed
Component: HTTP handling | Version: 4.1
Severity: Normal | Resolution: wontfix
Keywords: views decorator | Triage Stage:
timeout | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):
* status: new => closed
* resolution: => wontfix
Comment:
> Ideally I'd set a timer so that any request that takes 4+ seconds to
solve is killed and retried,
and a secondary timer so that any request that has been retried 7 times
redirects to an error page,
on the error page implement some javascript to re-request the page.
I think this would work well as a third-party app. Certainly prototyping
it there would be appropriate, following up on the DevelopersMailingList
to discuss inclusion at that point.
For the simpler case, perhaps a [https://adamj.eu/tech/2019/05/27/the-
simplest-wsgi-middleware/ WSGI Middleware] would be the easiest thing to
add?
--
Ticket URL: <https://code.djangoproject.com/ticket/34159#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/010701847ab8e4f3-896745ab-83bb-492d-8cf1-dc7089e68702-000000%40eu-central-1.amazonses.com.