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

[Messenger] Add "non sendable" stamps#31471

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

Conversation

@weaverryan
Copy link
Member

QA
Branch?4.3
Bug fix?yes
New feature?yes
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#31460
LicenseMIT
Doc PRnot needed

Fixes a bug where Symfony serialization of the AmqpReceivedStamp sometimes caused problems.

It's still a mystery why theAmqpReceivedStamp caused a segfaultsometimes when going through the Symfony serializer or theVarDumper. But, that stamp really didn't need to be sent on redelivery anyways.

I don't love making the removal the responsibility of the serializers, but it didn't work well anywhere else.

Cheers!

Copy link
Contributor

@srozesroze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

The use-case is definitely there 👍

@weaverryanweaverryanforce-pushed themessenger-non-sendable-stamps branch from42e4158 to37a43d6CompareMay 13, 2019 13:46
Fixes a bug where Symfony serialization of the AmqpReceivedStamp sometimes caused problems.
@weaverryanweaverryanforce-pushed themessenger-non-sendable-stamps branch from37a43d6 to34e7781CompareMay 13, 2019 13:49
@weaverryan
Copy link
MemberAuthor

Moved implementation to a newEnvelope method.

I've only added the new "non-sendable stamp interface" to 3 transport-specific "received" stamps. Generally speaking, Ithink that stampsshould be sent, unless there is a clear reason otherwise. Allowing stamps to be sendable (the default)can make the messages bigger when being retried after failure. But they also allow for a really beautiful "history" as you can look at an Envelope and see exactly what happened to it over time.

Anyways, this is ready to go!

@weaverryan
Copy link
MemberAuthor

This is still ready to go.

@fabpot
Copy link
Member

Thank you@weaverryan.

@fabpotfabpot merged commit34e7781 intosymfony:4.3May 21, 2019
fabpot added a commit that referenced this pull requestMay 21, 2019
This PR was merged into the 4.3 branch.Discussion----------[Messenger] Add "non sendable" stamps| Q             | A| ------------- | ---| Branch?       | 4.3| Bug fix?      | yes| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#31460| License       | MIT| Doc PR        | not neededFixes a bug where Symfony serialization of the AmqpReceivedStamp sometimes caused problems.It's still a mystery why the `AmqpReceivedStamp` caused a segfault *sometimes* when going through the Symfony serializer or the `VarDumper`. But, that stamp really didn't need to be sent on redelivery anyways.I don't love making the removal the responsibility of the serializers, but it didn't work well anywhere else.Cheers!Commits-------34e7781 Adding a new NonSendableStampInterface to avoid sending certain stamps
@fabpotfabpot mentioned this pull requestMay 22, 2019
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

+2 more reviewers

@TobionTobionTobion left review comments

@srozesrozesroze left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

4.3

Development

Successfully merging this pull request may close these issues.

6 participants

@weaverryan@fabpot@nicolas-grekas@Tobion@sroze@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp