From 77296d9a424da79e420f215e231d4e90c8b136f5 Mon Sep 17 00:00:00 2001 From: Badrish Chandramouli Date: Fri, 2 Jun 2023 11:47:50 -0700 Subject: [PATCH] Rethrow exception in SendResponse (#841) --- cs/remote/src/FASTER.common/TcpNetworkSender.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cs/remote/src/FASTER.common/TcpNetworkSender.cs b/cs/remote/src/FASTER.common/TcpNetworkSender.cs index e46469442..cf72a4743 100644 --- a/cs/remote/src/FASTER.common/TcpNetworkSender.cs +++ b/cs/remote/src/FASTER.common/TcpNetworkSender.cs @@ -123,7 +123,8 @@ public override bool SendResponse(int offset, int size) reusableSeaaBuffer.Return(_r); if (Interlocked.Decrement(ref throttleCount) >= ThrottleMax) throttle.Release(); - return false; + // Rethrow exception as session is not usable + throw; } return true; }