Skip to content
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

Problem: create_ipc_wildcard_address can fail #4732

Merged
merged 1 commit into from
Aug 23, 2024

Conversation

minrk
Copy link
Member

@minrk minrk commented Aug 23, 2024

check and handle failure as a fallback to tcp

I believe this is the cause of #4730

There may be a better underlying fix to prevent the failure in the first place, but this treats failure to create the path for the ipc socket as a condition for falling back on tcp, just like failing to create the AF_UNIX socket itself, rather than ignoring the error and assuming success, which may fail later in epoll with EBADF.

I haven't been able to explain why this failure occurs in very peculiar scenarios (see #4730 and various linked issues through pyzmq), but this patch causes at least one of those cases to succeed, if I've done my tests correctly. Setting $env:TMP to a nonexistent or non-writable directory seems to provoke it sometimes as well.

@bluca bluca merged commit 0ed7a08 into zeromq:master Aug 23, 2024
65 checks passed
@minrk minrk deleted the ipc-can-fail branch August 25, 2024 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants