From 21adbcfa34f2ee7a4ef3579640fd4a18ff940331 Mon Sep 17 00:00:00 2001 From: Johannes Rudolph Date: Wed, 31 Jul 2019 13:36:58 +0200 Subject: [PATCH] actor: ignore more messages while TcpConnection is shutting down Otherwise, there will be noisy warnings in the log for messages that carry `DeadLetterSupression` like all the `CloseCommands`. --- akka-actor/src/main/scala/akka/io/TcpConnection.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/akka-actor/src/main/scala/akka/io/TcpConnection.scala b/akka-actor/src/main/scala/akka/io/TcpConnection.scala index 812983ad56..b91daf4c68 100644 --- a/akka-actor/src/main/scala/akka/io/TcpConnection.scala +++ b/akka-actor/src/main/scala/akka/io/TcpConnection.scala @@ -199,6 +199,7 @@ private[io] abstract class TcpConnection(val tcp: TcpExt, val channel: SocketCha def unregistering: Receive = { case Unregistered => context.stop(self) // postStop will notify interested parties case ChannelReadable | ChannelWritable | ChannelAcceptable | ChannelConnectable => // ignore, we are going away soon anyway + case _: DeadLetterSuppression => // ignore } // AUXILIARIES and IMPLEMENTATION