Opened 2 years ago

Last modified 2 years ago

#34167 closed Cleanup/optimization

Set a reasonable default for EMAIL_TIMEOUT — at Initial Version

Reported by: Federico Capoano Owned by: nobody
Component: Core (Mail) Version: 4.1
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Why there's no default for EMAIL_TIMEOUT?

Applications built in Django can potentially stall indefinitely if email sending starts to hang (eg: if the SMTP server is overloaded), when this happens, since there's no timeout, there's also no error being logged, so it's very hard and time consuming to debug.

Wouldn't it be better to set a timeout? Some high value like 2 minutes which wouldn't really make sense to wait any longer, so at least if and when this happens, developers will find error traces in the logs and quickly understand where the problem is coming from, instead of spending hours to debug it like I did in the past week.

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top