Re: Set a reasonable default for EMAIL_TIMEOUT

2022-11-29 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Federico - I think we’d like to see a few more “pro”s in the thread. Personally, I am pro adding a default timeout. The lack of a default timeout in *requests* is a constant source of outages, which lead me to write this hack

Re: Set a reasonable default for EMAIL_TIMEOUT

2022-11-29 Thread Federico Capoano
Hi everyone, do you think you are against on opening an issue for this? I had already opened an issue which was marked as wontfix and I was asked to open this discussion here. Best regards Federico On Monday, November 21, 2022 at 5:31:27 PM

Re: Set a reasonable default for EMAIL_TIMEOUT

2022-11-21 Thread Federico Capoano
Hi there, yes I can add EMAIL_TIMEOUT in my applications and I am already doing that. The reason I wanted to bring this up here is that I care about Django. This behavior goes against a well known concept of the Unix Philosophy which is to "Write programs which fail in a way that is easy to

Re: Set a reasonable default for EMAIL_TIMEOUT

2022-11-18 Thread Michiel Beijen
Hi Mariusz, > Op 17 nov. 2022, om 18:18 heeft Mariusz Felisiak > het volgende geschreven: > > "Why is there no default for EMAIL_TIMEOUT?" > The Django's SMTP backend is a wrapper around smtplib.SMTP/SMTP_SSL and we > only pass the "timeout" parameter to the smtplib API, so I'd first ask why

Re: Set a reasonable default for EMAIL_TIMEOUT

2022-11-17 Thread Mariusz Felisiak
*"Why is there no default for EMAIL_TIMEOUT?"* The Django's SMTP backend is a wrapper around smtplib.SMTP/SMTP_SSL and we only pass the "timeout" parameter to the smtplib API, so I'd first ask why there is no default value for a timeout parameter in smtplib. Best, Mariusz -- You received this

Re: Set a reasonable default for EMAIL_TIMEOUT

2022-11-17 Thread Arthur Pemberton
> (Why is "Just give it a value in your settings" not OK? 樂) I'm guessing the issue here is that it's currently an unknown-unknown to most/all newbies. At the very least, it should probably be addressed in the documentation on deployment. Regards, Arthur Pemberton On Thu, 17 Nov 2022 at 11:16,

Re: Set a reasonable default for EMAIL_TIMEOUT

2022-11-17 Thread Carlton Gibson
Hi Federico. Maybe if we were starting from scratch having a default would be the right course — "maybe", I didn't think it through yet, or look at why the original decision went the way it did — but I don't think changing it is worth the disruption, or the difficulty of going through the

Set a reasonable default for EMAIL_TIMEOUT

2022-11-17 Thread Federico Capoano
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