Hi all,

Why is there 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.

Alternatively, we could set a default timeout only if
"socket.getdefaulttimeout()" returns None, just to avoid applications
stalling indefinitely, which is something that has been happening to me
lately.

Best regards
Federico Capoano

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAERYH6Vs6%2BWnJMsw95Uc_b006PZ2N_Pr%3DNgx4ztPDkgjVbkivA%40mail.gmail.com.
  • Set... Federico Capoano
    • ... Carlton Gibson
      • ... Arthur Pemberton
        • ... Mariusz Felisiak
          • ... Michiel Beijen
            • ... Federico Capoano
              • ... Federico Capoano
                • ... 'Adam Johnson' via Django developers (Contributions to Django itself)

Reply via email to