named-pipe-wrapper icon indicating copy to clipboard operation
named-pipe-wrapper copied to clipboard

Workaround for CPU spin on NamedPipeClientStream.Connect()

Open marcbarry opened this issue 7 years ago • 1 comments

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.

marcbarry avatar Mar 14 '17 21:03 marcbarry

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.

marcbarry avatar Mar 14 '17 21:03 marcbarry