mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-24 02:30:13 +00:00
When Node is launched with a debug listener, disable connection draining on restart. Fixes #506.
This commit is contained in:
@@ -72,7 +72,8 @@ namespace Microsoft.AspNetCore.NodeServices
|
||||
{
|
||||
if (_currentNodeInstance == nodeInstance)
|
||||
{
|
||||
DisposeNodeInstance(_currentNodeInstance, delay: ConnectionDrainingTimespan);
|
||||
var disposalDelay = ex.AllowConnectionDraining ? ConnectionDrainingTimespan : TimeSpan.Zero;
|
||||
DisposeNodeInstance(_currentNodeInstance, disposalDelay);
|
||||
_currentNodeInstance = null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user