We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51657c7 commit eb560e2Copy full SHA for eb560e2
src/BuiltInTools/Watch/Context/EnvironmentOptions.cs
@@ -61,9 +61,8 @@ internal sealed record EnvironmentOptions(
61
);
62
63
public TimeSpan GetProcessCleanupTimeout(bool isHotReloadEnabled)
64
- // If Hot Reload mode is disabled the process is restarted on every file change.
65
- // Waiting for graceful termination would slow down the turn around.
66
- => ProcessCleanupTimeout ?? (isHotReloadEnabled ? TimeSpan.FromSeconds(5) : TimeSpan.FromSeconds(0));
+ // Allow sufficient time for the process to exit gracefully and release resources (e.g., network ports).
+ => ProcessCleanupTimeout ?? TimeSpan.FromSeconds(5);
67
68
private int _uniqueLogId;
69
0 commit comments