id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 21271,Django's usage of smtplib.SMTP should have a timeout,André Cruz,nobody,"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.",Cleanup/optimization,closed,Core (Mail),1.5,Normal,fixed,smtp timeout,susan.tan.fleckerl@…,Accepted,1,0,0,1,1,0