-
Notifications
You must be signed in to change notification settings - Fork 1k
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
UDP Connected: Unhandled message SocketReceived #5318
Comments
This is (almost) normal, the socket is read asynchronously, and a received message can be sent after the actor died, and since the actor already died, it will be sent to deadletter. @jjmSE thank you for the report. |
This is now trivial to fix after #5404 is merged in. We just need to add IDeadLetterSuppresion to SocketReceived. |
Version Information
Version of Akka.NET? 1.4.25
Which Akka.NET Modules? Akka.IO
Describe the bug
When communication with the device is complete, we send a UdpConnected.Disconnect message to close the socket.
After that, we receive UdpConnected.Disconnected but we see an unhandled message in UdpConnection actor:
Message [SocketReceived] to [akka://dlmshe/system/IO-UDP-CONN/$a#267206278] was not delivered. [1] dead letters
encountered. If this is not an expected behavior then [akka://dlmshe/system/IO-UDP-CONN/$a#267206278] may have
terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and
'akka.log-dead-letters-during-shutdown'.
Expected behavior
UDP socket is closed successfully.
Actual behavior
UDP socket is closed successfully but we see an unhandled message.
Environment
Windows
.NET Framework 4.8
akka_seq_logs.csv
The text was updated successfully, but these errors were encountered: