Skip to content

Commit a9bc120

Browse files
Fix the build by passing allowConnectionDraining from SocketNodeInstance
1 parent 6a1f35d commit a9bc120

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/Microsoft.AspNetCore.NodeServices.Sockets/SocketNodeInstance.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,15 @@ protected override async Task<T> InvokeExportAsync<T>(NodeInvocationInfo invocat
6262
{
6363
if (_connectionHasFailed)
6464
{
65+
// _connectionHasFailed implies a protocol-level error. The old instance is no longer of any use.
66+
var allowConnectionDraining = false;
67+
6568
// This special exception type forces NodeServicesImpl to restart the Node instance
6669
throw new NodeInvocationException(
6770
"The SocketNodeInstance socket connection failed. See logs to identify the reason.",
68-
null,
69-
nodeInstanceUnavailable: true);
71+
details: null,
72+
nodeInstanceUnavailable: true,
73+
allowConnectionDraining: allowConnectionDraining);
7074
}
7175

7276
if (_virtualConnectionClient == null)

0 commit comments

Comments
 (0)