Skip to content

Commit

Permalink
Fixed client complete abort websocket that is sending
Browse files Browse the repository at this point in the history
ManagedWebSocket.SendAsync abort the connection when a cancellation is raised.
OperationSession cancel reading the response stream and sending when the client sends a complete message.
This PR fixes multiple operation being aborted by a completing operation.
  • Loading branch information
sunghwan2789 committed Dec 2, 2024
1 parent 0f2ffdd commit 282b0f3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ await _session.Protocol.SendErrorMessageAsync(
{
try
{
await SendResultMessageAsync(item, ct);
// use original cancellation token here to keep the websocket open for other streams.
await SendResultMessageAsync(item, cancellationToken);
}
finally
{
Expand Down

0 comments on commit 282b0f3

Please sign in to comment.