My fixes so far for this:
https://github.com/natefinch/npipe/pull/17 https://github.com/natefinch/npipe/pull/18
However, I think there's still a problem with Close() not always preempting Accept(), as commented in npipe pull request #18.
I wonder if this use of syscall.INFINITE is too naive (https://github.com/cmars/npipe/blob/7ed58dc21b9e3d962daef664a2f6ed07314544ad/npipe_windows.go#L182) but I know next to nothing about Windows APIs.
My fixes so far for this:
https:/ /github. com/natefinch/ npipe/pull/ 17 /github. com/natefinch/ npipe/pull/ 18
https:/
However, I think there's still a problem with Close() not always preempting Accept(), as commented in npipe pull request #18.
I wonder if this use of syscall.INFINITE is too naive (https:/ /github. com/cmars/ npipe/blob/ 7ed58dc21b9e3d9 62daef664a2f6ed 07314544ad/ npipe_windows. go#L182) but I know next to nothing about Windows APIs.