1 | | For the record, I started a discussion here: https://groups.google.com/g/django-developers/c/XZbKeM8fVxU/m/jp0h8U4tBgAJ |
| 1 | Why there's no default for EMAIL_TIMEOUT? |
| 2 | |
| 3 | Applications built in Django can potentially stall indefinitely if email |
| 4 | sending starts to hang (eg: if the SMTP server is overloaded), when this |
| 5 | happens, since there's no timeout, there's also no error being logged, so |
| 6 | it's very hard and time consuming to debug. |
| 7 | |
| 8 | Wouldn't it be better to set a timeout? Some high value like 2 minutes |
| 9 | which wouldn't really make sense to wait any longer, so at least if and |
| 10 | when this happens, developers will find error traces in the logs and |
| 11 | quickly understand where the problem is coming from, instead of spending |
| 12 | hours to debug it like I did in the past week. |