#24777: Add support for statement_timeout
----------------------------------------------+--------------------
     Reporter:  jdufresne                     |      Owner:  nobody
         Type:  New feature                   |     Status:  new
    Component:  Database layer (models, ORM)  |    Version:  master
     Severity:  Normal                        |   Keywords:
 Triage Stage:  Unreviewed                    |  Has patch:  0
Easy pickings:  0                             |      UI/UX:  0
----------------------------------------------+--------------------
 Some database servers have support for the max time a SQL statement can
 execute before it is aborted. In PostgreSQL this is the
 {{{statement_timeout}}} variable. Other database servers may have similar
 features available.

 I'm suggesting that Django expose a database setting that allows
 connections to set this variable. This will allow applications to easily
 set limits on this resource. A bug in an application may unexpectedly
 produce a long running query. It is often more desirable to kill the
 request/query than to allow the request to continue consuming resources. A
 bug of this nature could lead to a DOM vulnerability in an application.
 Setting {{{statement_timeout}}} could help reduce the harm of such a bug.

 PR to follow.

--
Ticket URL: <https://code.djangoproject.com/ticket/24777>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.e9cf6b43f6c7a5bd2fbc697567fd4832%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to