#21271: Django's usage of smtplib.SMTP should have a timeout
-----------------------------+--------------------------
     Reporter:  edevil       |      Owner:  nobody
         Type:  Bug          |     Status:  new
    Component:  Core (Mail)  |    Version:  1.5
     Severity:  Normal       |   Keywords:  smtp timeout
 Triage Stage:  Unreviewed   |  Has patch:  0
Easy pickings:  0            |      UI/UX:  0
-----------------------------+--------------------------
 When EmailBackend initializes SMTP objects it does not provide a timeout,
 and the default timeout is object() (no timeout). It would be sensible to
 provide some configurable timeout.

 I've got bitten by this when using the AdminEmailHandler. My database went
 down, a lot of exceptions were generated and Django was trying to send
 emails. The SMTP server started not responding and the requests started
 blocking, until all my workers were used up. By then Django stopped
 serving requests. Basically, I was DoSed by my own SMTP server.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/21271>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/049.6eec38845a5e05b04048ca732c16a05a%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to