Skip to content

Commit 6a79394

Browse files
akolpachevmichaelstaib
andauthoredApr 28, 2021
Fixed memory leaks in subscriptions (#3608)
Co-authored-by: Michael Staib <michael@chillicream.com>
1 parent ac6d865 commit 6a79394

File tree

54 files changed

+1399
-516
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+1399
-516
lines changed
 

‎src/HotChocolate/AspNetCore/src/AspNetCore/ErrorHelper.cs

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using System;
12
using HotChocolate.AspNetCore.Properties;
23
using HotChocolate.Execution;
34

@@ -25,5 +26,18 @@ public static IQueryResult ResponseTypeNotSupported() =>
2526
ErrorBuilder.New()
2627
.SetMessage(AspNetCoreResources.ErrorHelper_ResponseTypeNotSupported)
2728
.Build());
29+
30+
public static IQueryResult UnknownSubscriptionError(Exception ex)
31+
{
32+
IError error =
33+
ErrorBuilder
34+
.New()
35+
.SetException(ex)
36+
.SetCode(ErrorCodes.Execution.TaskProcessingError)
37+
.SetMessage(AspNetCoreResources.Subscription_SendResultsAsync)
38+
.Build();
39+
40+
return QueryResultBuilder.CreateError(error);
41+
}
2842
}
2943
}

‎src/HotChocolate/AspNetCore/src/AspNetCore/Properties/AspNetCoreResources.Designer.cs

+64-121
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.