-
Notifications
You must be signed in to change notification settings - Fork 553
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
UNIX socket is automatically unlinked #28
Comments
Hm, libuv unlinks the path unconditionally, I can't do anything about it. @saghul, sorry for bothering you, do you think it's possible to add a flag in libuv to tell it not to unlink the path in |
Alternatively we can re-create the |
No worries Yuri. I don't think we'd do that. See the comment before the unlink, it prevents a race. Alternatively, you can create a UNIX socket with the Python socket module and use uv_pipe_open, that way the path won't be unlinked because libuv doesn't store it. |
@saghul Good idea, I followed your advice :) @AndreLouisCaron Thanks for reporting this! Should be fixed in the |
Thanks! |
I've just released uvloop v0.4.26. Please check it out. |
Just tried 0.4.26 and it now works as expected! Thanks! |
Thanks! Closing the issue. |
When using the built-in event loop, you need to do something like this:
However, when I use uvloop, the
os.unlink()
call raises aFileNotFoundError
exception.I was wondering if you already know about this and if it is intentional?
I don't mind adding a try/except clause to silence the exception, but if you're aiming for this event loop to be a drop-in replacement for the built-in event loop, I guess you're going to want to change this?
The text was updated successfully, but these errors were encountered: