1 | | Why there's no default for EMAIL_TIMEOUT? |
2 | | |
3 | | 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. |
4 | | |
5 | | 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. |
| 1 | For the record, I started a discussion here: https://groups.google.com/g/django-developers/c/XZbKeM8fVxU/m/jp0h8U4tBgAJ |