Skip to content

Commit

Permalink
Improve connection sleep time selection when fetching emails to avoid…
Browse files Browse the repository at this point in the history
… connection setup failed error - closes #4227
  • Loading branch information
freescout-help-desk committed Oct 2, 2024
1 parent 0280e4f commit 3f90a9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Console/Commands/FetchEmails.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function ($mailboxId) {
// we increase connection sleep time and retry after sleep.
// https://github.com/freescout-help-desk/freescout/issues/4227
if (trim($e->getMessage()) == 'connection setup failed') {
$sleep += 200000;
$sleep += 500000;

usleep(self::MAX_SLEEP);

Expand Down

0 comments on commit 3f90a9b

Please sign in to comment.