We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a1f35d commit a9bc120Copy full SHA for a9bc120
1 file changed
src/Microsoft.AspNetCore.NodeServices.Sockets/SocketNodeInstance.cs
@@ -62,11 +62,15 @@ protected override async Task<T> InvokeExportAsync<T>(NodeInvocationInfo invocat
62
{
63
if (_connectionHasFailed)
64
65
+ // _connectionHasFailed implies a protocol-level error. The old instance is no longer of any use.
66
+ var allowConnectionDraining = false;
67
+
68
// This special exception type forces NodeServicesImpl to restart the Node instance
69
throw new NodeInvocationException(
70
"The SocketNodeInstance socket connection failed. See logs to identify the reason.",
- null,
- nodeInstanceUnavailable: true);
71
+ details: null,
72
+ nodeInstanceUnavailable: true,
73
+ allowConnectionDraining: allowConnectionDraining);
74
}
75
76
if (_virtualConnectionClient == null)
0 commit comments