File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/Microsoft.AspNetCore.NodeServices.Sockets Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -62,11 +62,15 @@ protected override async Task<T> InvokeExportAsync<T>(NodeInvocationInfo invocat
62
62
{
63
63
if ( _connectionHasFailed )
64
64
{
65
+ // _connectionHasFailed implies a protocol-level error. The old instance is no longer of any use.
66
+ var allowConnectionDraining = false ;
67
+
65
68
// This special exception type forces NodeServicesImpl to restart the Node instance
66
69
throw new NodeInvocationException (
67
70
"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 ) ;
70
74
}
71
75
72
76
if ( _virtualConnectionClient == null )
You can’t perform that action at this time.
0 commit comments