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
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 )
You can’t perform that action at this time.
0 commit comments