Increase timeout on imap
authorEileen McNaughton <emcnaughton@wikimedia.org>
Wed, 25 Jan 2023 20:43:53 +0000 (09:43 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Wed, 25 Jan 2023 20:47:12 +0000 (09:47 +1300)
commit85753084f77ccf1cd7af5b5671a7530686ca281b
treedca55f4e3a9dd9278e9b7ba633637cb249e56914
parent4502008c8e41b8b0935e00ebed0a0748e4095ced
Increase timeout on imap

About once a day we get an error because the imap server takes longer than the 5
second timeout. This would be largely invisible to most sites as it
would cause a run of fetch_bounces to fail quietly & then the next
one would probably work. For us the impact is we get notified.

I think the impact of increasing to 15 seconds is small enough we
don't need to make it configurable and I doubt that we hit this
timeout any more than anyone else (our imap is within our
own network which is surely more reliably fast than gmail)
so the main impact is that people's fetch_bounces jobs are likely
to result in data getting into civi with less failed runs & hence
a bit quicker
CRM/Mailing/MailStore/Imap.php