From b0c4e1c3ead26d7df721ef5c4c92cdb64a0e974f Mon Sep 17 00:00:00 2001 From: Sunghwan Bang Date: Tue, 3 Dec 2024 21:11:04 +0900 Subject: [PATCH] Fixed client complete abort websocket that is sending (#7793) --- .../src/AspNetCore/Subscriptions/OperationSession.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/HotChocolate/AspNetCore/src/AspNetCore/Subscriptions/OperationSession.cs b/src/HotChocolate/AspNetCore/src/AspNetCore/Subscriptions/OperationSession.cs index b421740a3cf..6bc08aa6582 100644 --- a/src/HotChocolate/AspNetCore/src/AspNetCore/Subscriptions/OperationSession.cs +++ b/src/HotChocolate/AspNetCore/src/AspNetCore/Subscriptions/OperationSession.cs @@ -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 {