Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Mailer] Fix sendmail transport failure handling and interactive mode #54572

Merged
merged 1 commit into from
May 30, 2024

Conversation

bobvandevijver
Copy link
Contributor

Q A
Branch? 5.4
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #54532
License MIT

#54239 introduced an issue for us when using sendmail in interactive mode using a long running background worker. It will throw exceptions due to an unclean shutdown in case of an SMTP timeout (5 minute by default), while in interactive mode all output is actually handled by the SMTP transport, including that timeout. That makes the exit code of the long running process not relevant in that mode. See the bug report for some more details.

I have verified that this change solves my production issues, although I am not particularly fond on the hoops I had to jump to show this in the test.

cc @aboks

@nicolas-grekas nicolas-grekas changed the title Fix sendmail transport failure handling and interactive mode [Mailer] Fix sendmail transport failure handling and interactive mode Apr 11, 2024
@nicolas-grekas nicolas-grekas added this to the 5.4 milestone Apr 11, 2024
@fabpot
Copy link
Member

fabpot commented May 30, 2024

Thank you @bobvandevijver.

@fabpot fabpot merged commit f7de3e1 into symfony:5.4 May 30, 2024
3 of 5 checks passed
@bobvandevijver bobvandevijver deleted the fix-sendmail branch May 30, 2024 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants