Describe the bug
Once a socket has been opened on one version of PowerShell, other versions of PowerShell cannot send/read messages to/from the opened socket.
To Reproduce
Using LocalSocketStream::connect("@known-name.sock"):
- Run
connect in one process in PowerShell 5, it should succeed and does
- Run
connect in another process in PowerShell 7, it should fail, but succeeds
Expected behavior
Instead of the second connection succeeding, it should fail because there is already a process attached to that socket.
Describe the bug
Once a socket has been opened on one version of PowerShell, other versions of PowerShell cannot send/read messages to/from the opened socket.
To Reproduce
Using
LocalSocketStream::connect("@known-name.sock"):connectin one process in PowerShell 5, it should succeed and doesconnectin another process in PowerShell 7, it should fail, but succeedsExpected behavior
Instead of the second connection succeeding, it should fail because there is already a process attached to that socket.