Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Avoid dispatching SendMessageToTransportsEvent on redeliver #30676

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

Merged
merged 1 commit into from
Mar 26, 2019

Conversation

weaverryan
Copy link
Member

Q A
Branch? master
Bug fix? yes - I think so
New feature? no
BC breaks? no (feature only on master)
Deprecations? no
Tests pass? yes
Fixed tickets none
License MIT
Doc PR a lot, soon :)

This purpose of this event is to be a hook when a message is sent to a transport.
If that message is redelivered later, that's not the purpose of this hook (there
are Worker events for that) and could cause problems if the user unknowingly
tries to modify the Envelope in some way, not thinking about how this might
be a redelivery message.

This purpose of this event is to be a hook when a message is sent to a transport.
If that message is redelivered later, that's not the purpose of this hook (there
are Worker events for that) and could cause problems if the user unknowingly
tries to modify the Envelope in some way, not thinking about how this might
be a redelivery message.
@weaverryan
Copy link
Member Author

Ready!

@fabpot
Copy link
Member

fabpot commented Mar 26, 2019

Thank you @weaverryan.

@fabpot fabpot merged commit 3ac6bf9 into symfony:master Mar 26, 2019
fabpot added a commit that referenced this pull request Mar 26, 2019
…liver (weaverryan)

This PR was merged into the 4.3-dev branch.

Discussion
----------

Avoid dispatching SendMessageToTransportsEvent on redeliver

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes - I think so
| New feature?  | no
| BC breaks?    | no (feature only on master)
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | none
| License       | MIT
| Doc PR        | a lot, soon :)

This purpose of this event is to be a hook when a message is sent to a transport.
If that message is redelivered later, that's not the purpose of this hook (there
are Worker events for that) and could cause problems if the user unknowingly
tries to modify the Envelope in some way, not thinking about how this might
be a redelivery message.

Commits
-------

3ac6bf9 Avoid dispatching SendMessageToTransportsEvent on redeliver
@weaverryan weaverryan deleted the event-not-on-retry branch March 26, 2019 15:52
@nicolas-grekas nicolas-grekas modified the milestones: next, 4.3 Apr 30, 2019
@fabpot fabpot mentioned this pull request May 9, 2019
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.

4 participants