From 0e7cd06933dfbd4215cd225ee6bc394ec2e95bfe Mon Sep 17 00:00:00 2001 From: Gregorius Soedharmo Date: Sat, 28 May 2022 03:09:50 +0700 Subject: [PATCH] Trap all exception thrown while trying to dispatch messages in Akka.Remote.EnpointReader (#5971) --- src/core/Akka.Remote/Endpoint.cs | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/core/Akka.Remote/Endpoint.cs b/src/core/Akka.Remote/Endpoint.cs index bcbe958e1f4..a1b52f02148 100644 --- a/src/core/Akka.Remote/Endpoint.cs +++ b/src/core/Akka.Remote/Endpoint.cs @@ -1953,21 +1953,9 @@ private void Reading() ackAndMessage.MessageOption.SerializedMessage, ackAndMessage.MessageOption.SenderOptional); } - catch (SerializationException e) - { - LogTransientSerializationError(ackAndMessage.MessageOption, e); - } - catch (ArgumentException e) - { - LogTransientSerializationError(ackAndMessage.MessageOption, e); - } - catch (InvalidCastException e) - { - LogTransientSerializationError(ackAndMessage.MessageOption, e); - } catch (Exception e) { - throw; + LogTransientSerializationError(ackAndMessage.MessageOption, e); } } }