Skip to content

Commit

Permalink
Rethrow exception in SendResponse (#841)
Browse files Browse the repository at this point in the history
  • Loading branch information
badrishc authored Jun 2, 2023
1 parent 0e03937 commit 77296d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cs/remote/src/FASTER.common/TcpNetworkSender.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 77296d9

Please sign in to comment.