mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 01:58:29 +00:00
Fix the build by passing allowConnectionDraining from SocketNodeInstance
This commit is contained in:
@@ -62,11 +62,15 @@ namespace Microsoft.AspNetCore.NodeServices.Sockets
|
|||||||
{
|
{
|
||||||
if (_connectionHasFailed)
|
if (_connectionHasFailed)
|
||||||
{
|
{
|
||||||
|
// _connectionHasFailed implies a protocol-level error. The old instance is no longer of any use.
|
||||||
|
var allowConnectionDraining = false;
|
||||||
|
|
||||||
// This special exception type forces NodeServicesImpl to restart the Node instance
|
// This special exception type forces NodeServicesImpl to restart the Node instance
|
||||||
throw new NodeInvocationException(
|
throw new NodeInvocationException(
|
||||||
"The SocketNodeInstance socket connection failed. See logs to identify the reason.",
|
"The SocketNodeInstance socket connection failed. See logs to identify the reason.",
|
||||||
null,
|
details: null,
|
||||||
nodeInstanceUnavailable: true);
|
nodeInstanceUnavailable: true,
|
||||||
|
allowConnectionDraining: allowConnectionDraining);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_virtualConnectionClient == null)
|
if (_virtualConnectionClient == null)
|
||||||
|
|||||||
Reference in New Issue
Block a user