-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ConnectNamedPipe fails #10
Comments
I'll take a look at that in a few days, thanks |
Checking for an error like you suggested doesn't seem to be the right way to do this. Can you please check the latest version where I made a small correction? |
I'm assuming this issue is fixed, then |
The comment by svenbw is right, you need to do that change because ERROR_PIPE_CONNECTED can be returned as an "error" in some scenarios, you're currently just assuming it's not connected when it is. |
I've refactored this code (locally, haven't pushed yet), will take another look at this soon |
@synhershko You have fixed this, so I think you can close it:
|
Nevermind, might need to be fixed here too:
|
Closing as duplicate of #54 |
Sometimes this function fails although there is a pipe created.
It seems that the CreateNamedPipe function can report that the connection is complete when it's not ready yet.
Changing the code by checking on the 535 (ERROR_PIPE_CONNECTED) seems to overcome this issue.
The text was updated successfully, but these errors were encountered: