interprocess
interprocess copied to clipboard
Socket discovery doesn't work across multiple PowerShell versions
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.