Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Nyholm commentedJul 22, 2021
Hm.. I would argue that this is a new feature. It should target 5.4. |
Tyraelqp commentedJul 22, 2021
We have |
Nyholm commentedJul 22, 2021
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. |
Tyraelqp commentedJul 22, 2021
@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:
|
OskarStark commentedJul 22, 2021
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? |
nicolas-grekas left a comment
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 OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Tyraelqp commentedJul 22, 2021
@OskarStark@nicolas-grekas What do you think about default value? (second question from this comment#42219 (comment)) |
OskarStark commentedJul 22, 2021
I would fix this as a bugfix, and as a feature against 5.4 setting the default value to 8 |
Tyraelqp commentedJul 22, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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? |
OskarStark commentedJul 22, 2021
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 😄 |
Tyraelqp commentedJul 22, 2021
Option 1: default value in 4.4 and support of |
Nyholm commentedJul 24, 2021
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 tohttps://github.com/symfony/symfony-docs |
fabpot commentedJul 25, 2021
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. |
Tyraelqp commentedJul 26, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
It is possible to reparse PR with@carsonbot to change tags and milestone? |
fabpot commentedJul 26, 2021
Thank you@Tyraelqp. |
This PR was squashed before being merged into the 5.4 branch.Discussion----------[Mailer] ping_threshold for ses+smtpDocs forsymfony/symfony#42219Commits-------7f54a27 [Mailer] ping_threshold for ses+smtp
Uh oh!
There was an error while loading.Please reload this page.
Added support of ping_threshold option to
SesTransportFactoryforses+smtpandses+smtpsschemes. Needed because SES closes SMTP connection after 10 seconds of inactivity andTransportExceptionwill 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.".