named-pipe-wrapper
named-pipe-wrapper copied to clipboard
Workaround for CPU spin on NamedPipeClientStream.Connect()
Duplicates a portion of work implemented in another pull request by @darvell. Specifically commit 257d1a4 in pull request https://github.com/acdvorak/named-pipe-wrapper/pull/3
This change simply also catches TimeoutException's, moves the PInvoke to another class and uses the correct variable names and data types for the WaitNamedPipe() arguments.
This is a really useful library, it would be great to get an updated nuget package available with a workaround to this unexpected CPU spin behaviour.