Skip to content

Commit 15c4be1

Browse files
committed
Reduce Named Pipe server to single instance to fix connection mismatch
1 parent f9d4f3d commit 15c4be1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

PowerShell.MCP/Services/NamedPipeServer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static class ExecutionState
2323
public class NamedPipeServer : IDisposable
2424
{
2525
public const string PipeName = "PowerShell.MCP.Communication";
26-
private const int MaxConcurrentConnections = 2; // Two pipe instances
26+
private const int MaxConcurrentConnections = 1; // Single pipe instance
2727
private readonly CancellationTokenSource _internalCancellation = new();
2828
private readonly List<Task> _serverTasks = new();
2929
private bool _disposed = false;

0 commit comments

Comments
 (0)