DEV: Increase default SMTP read timeout to 30s (#25763)

A while ago we increased group SMTP read and open timeouts
to address issues we were seeing with Gmail sometimes giving
really long timeouts for these values. The commit was:

3e639e4aa7

Now, we want to increase all SMTP read timeouts to 30s,
since the 5s is too low sometimes, and the ruby Net::SMTP
stdlib also defaults to 30s.

Also, we want to slightly tweak the group smtp email job
not to fail if the IncomingEmail log fails to create, or if
a ReadTimeout is encountered, to avoid retrying the job in sidekiq
again and sending the same email out.
This commit is contained in:
Martin Brennan
2024-02-21 07:13:18 +10:00
committed by GitHub
parent 5817156499
commit ed47b55026
3 changed files with 46 additions and 14 deletions

View File

@@ -96,7 +96,7 @@ smtp_force_tls = false
smtp_open_timeout = 5
# Number of seconds to wait until timing-out a SMTP read(2) call
smtp_read_timeout = 5
smtp_read_timeout = 30
# number of seconds to wait while attempting to open a SMTP connection only when
# sending emails via group SMTP