Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[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

Merged
fabpot merged 1 commit intosymfony:5.4fromTyraelqp:ticket_39044_4.4
Jul 26, 2021

Conversation

@Tyraelqp
Copy link
Contributor

@TyraelqpTyraelqp commentedJul 21, 2021
edited
Loading

QA
Branch?5.4
Bug fix?no
New feature?Yes
Deprecations?no
TicketsFix#39044
LicenseMIT
Doc PRsymfony/symfony-docs#15557

Added support of ping_threshold option toSesTransportFactory 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.".

@carsonbotcarsonbot added this to the4.4 milestoneJul 21, 2021
@TyraelqpTyraelqp changed the title[Mailer] Add support of ping_threshold to SesTransportFactory (closes…[Mailer] Add support of ping_threshold to SesTransportFactoryJul 21, 2021
@OskarStarkOskarStark requested a review fromxabbuhJuly 21, 2021 13:22
@Nyholm
Copy link
Member

Hm.. I would argue that this is a new feature. It should target 5.4.

@Tyraelqp
Copy link
ContributorAuthor

Hm.. I would argue that this is a new feature. It should target 5.4.

We haveping_threshold for a long time - it is part ofSmtpTransport. But it was not implemented in Ses factory, and this looks more like a bug, because without this prop you can't use ses+smtp in background (messenger) without issues

@Nyholm
Copy link
Member

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
Copy link
ContributorAuthor

@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:

  • May/should i addrestart_threshold too?
  • What if i'll set default value forping_threshold to 8 or 9 (because SES closes SMTP connection after 10 seconds of inactivity) for SesSmtpTransport with possibility to override this value as in this PR?
  • What about documentation? Should i add something in docs repo?

@OskarStark
Copy link
Contributor

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?

Copy link
Member

@nicolas-grekasnicolas-grekas left a 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...

@Tyraelqp
Copy link
ContributorAuthor

@OskarStark@nicolas-grekas What do you think about default value? (second question from this comment#42219 (comment))

@OskarStark
Copy link
Contributor

I would fix this as a bugfix, and as a feature against 5.4 setting the default value to 8

@Tyraelqp
Copy link
ContributorAuthor

Tyraelqp commentedJul 22, 2021
edited
Loading

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 think it will be more correct to do vice versa: in 4.4 set default value to 8 (bugfix)[this is better fix than possibility to change value because works out of the box and does not requires any action from user/configuration], and in 5.4 add possibility to change value (feature)

@OskarStark
Copy link
Contributor

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
Copy link
ContributorAuthor

please decide

Option 1: default value in 4.4 and support ofping_threshold in 5.4
Option 2: default value in 5.4 and support ofping_threshold in 4.4

@Nyholm
Copy link
Member

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.

I see. Thank you. Since both Oskar and Nicolas think this can be merged in 4.4 that is okey.

May/should i add restart_threshold too?

Could you elaborate why that is needed?

What if i'll set default value for ping_threshold to 8 or 9 (because SES closes SMTP connection after 10 seconds of inactivity) for SesSmtpTransport with possibility to override this value as in this PR?

I prefer no default value. Just add the option to be able to setping_threshold. We don't want to modify existing behavior.

What about documentation? Should i add something in docs repo?

Yes please. When the PR is merged, I would appriciate that you sent a PR tohttps://github.com/symfony/symfony-docs
Remember to target the correct branch.

OskarStark reacted with thumbs up emoji

@fabpot
Copy link
Member

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.

@TyraelqpTyraelqp changed the base branch from4.4 to5.4July 26, 2021 06:48
@Tyraelqp
Copy link
ContributorAuthor

Tyraelqp commentedJul 26, 2021
edited
Loading

It is possible to reparse PR with@carsonbot to change tags and milestone?

Tyraelqp added a commit to Tyraelqp/symfony-docs that referenced this pull requestJul 26, 2021
@fabpot
Copy link
Member

Thank you@Tyraelqp.

@fabpotfabpot merged commitff54513 intosymfony:5.4Jul 26, 2021
@OskarStarkOskarStark modified the milestones:4.4,5.4Jul 26, 2021
javiereguiluz added a commit to symfony/symfony-docs that referenced this pull requestJul 29, 2021
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
This was referencedNov 5, 2021
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

@OskarStarkOskarStarkOskarStark approved these changes

@xabbuhxabbuhAwaiting requested review from xabbuh

@chalasrchalasrAwaiting requested review from chalasr

@dunglasdunglasAwaiting requested review from dunglas

@lyrixxlyrixxAwaiting requested review from lyrixx

@wouterjwouterjAwaiting requested review from wouterj

@ycerutoycerutoAwaiting requested review from yceruto

Assignees

No one assigned

Projects

None yet

Milestone

5.4

Development

Successfully merging this pull request may close these issues.

[Mailer] SMTP transport with AWS SES: "Timeout waiting for data from client"

6 participants

@Tyraelqp@Nyholm@OskarStark@fabpot@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp