-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Mailer] Add support of ping_threshold to SesTransportFactory #42219
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
Conversation
Hm.. I would argue that this is a new feature. It should target 5.4. |
We have |
Adding a new config option is a feature. It is currently not unusable in a background process. But I do understand it is painful and I agree that we should improve. If I remember correctly, there is not a lot of changes in mailer between 4.4 and 5.4. The component is fairly stable. (I’m on my phone, cannot check now… I might be wrong). It would not be an issue for you to keep using version 4.4 for other components and 5.4 for just mailer. |
@Nyholm I'm not using 4.4 and the target is 4.4 now because Oskar said in prev PR what target should be 4.4. I can open new PR to 5.4, it's not a problem. But i have several questions:
|
I would argue that the current implementation is not usable right now, that's why I would vote for a bugfix, ofc I am aware of the ne option new code -> new feature. @nicolas-grekas WDYT? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's edgy. This may be annoying enough to pass as a bugfix...
src/Symfony/Component/Mailer/Bridge/Amazon/Transport/SesTransportFactory.php
Outdated
Show resolved
Hide resolved
@OskarStark @nicolas-grekas What do you think about default value? (second question from this comment #42219 (comment)) |
I would fix this as a bugfix, and as a feature against 5.4 setting the default value to 8 |
Sorry, but i did not quite understand: leave this PR as is for 4.4, and open new one in 5.4 with default value? |
I agree, but the problem is, it would change the current behaviour, while just adding the possibility to set a value, can introduce new bugs, but will not break the current behaviour. Not sure I am to picky here. @nicolas-grekas please decide 😄 |
Option 1: default value in 4.4 and support of |
I see. Thank you. Since both Oskar and Nicolas think this can be merged in 4.4 that is okey.
Could you elaborate why that is needed?
I prefer no default value. Just add the option to be able to set
Yes please. When the PR is merged, I would appriciate that you sent a PR to https://github.com/symfony/symfony-docs |
Sorry to be the one to do this, but adding a new config is a new feature, no matter what. So, that's for 5.4. |
658793a
to
c476ecd
Compare
It is possible to reparse PR with @carsonbot to change tags and milestone? |
Thank you @Tyraelqp. |
This PR was squashed before being merged into the 5.4 branch. Discussion ---------- [Mailer] ping_threshold for ses+smtp Docs for symfony/symfony#42219 Commits ------- 7f54a27 [Mailer] ping_threshold for ses+smtp
Added support of ping_threshold option to
SesTransportFactory
forses+smtp
andses+smtps
schemes. Needed because SES closes SMTP connection after 10 seconds of inactivity andTransportException
will be thrown on next send:Expected response code "250" but got code "451", with message "451 4.4.2 Timeout waiting for data from client.".