Skip to content
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

Mark socket connection messages with IDeadLetterSuppression #5412

Conversation

Arkatufus
Copy link
Contributor

@Arkatufus Arkatufus commented Dec 3, 2021

Closes #5318
Socket connection messages like SocketReceived can arrive late to a dead socket listener after the socket actor is closed.
The log message from the deadletter actor made it look like it is a bigger problem than it is, when we know that this is a benign behaviour.
Marking these messages as IDeadLetterSuppression so it will not confuse user when it happens.

Copy link
Member

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

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

LGTM - no need for API approval as these are all internal classes.

@@ -53,7 +50,8 @@ public override TcpExt CreateExtension(ExtendedActorSystem system)

#region internal connection messages

internal abstract class SocketCompleted : INoSerializationVerificationNeeded { }
internal abstract class SocketCompleted : INoSerializationVerificationNeeded, IDeadLetterSuppression
Copy link
Member

Choose a reason for hiding this comment

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

LGTM

@Aaronontheweb Aaronontheweb enabled auto-merge (squash) December 3, 2021 15:35
@Aaronontheweb Aaronontheweb removed this from the 1.4.29 milestone Dec 3, 2021
@Aaronontheweb
Copy link
Member

Clearing milestone since the issue this resolves is part of it.

@Aaronontheweb Aaronontheweb enabled auto-merge (squash) December 3, 2021 15:58
@Aaronontheweb Aaronontheweb merged commit 7ec9417 into akkadotnet:dev Dec 3, 2021
@Arkatufus Arkatufus deleted the Fix_SocketReceived_DeadLetter_suppression branch December 13, 2021 21:10
@Arkatufus Arkatufus restored the Fix_SocketReceived_DeadLetter_suppression branch April 22, 2022 15:06
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.

UDP Connected: Unhandled message SocketReceived
2 participants