-
Notifications
You must be signed in to change notification settings - Fork 141
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
service name not available for the specified socket type #692
Comments
I'm just wondering why this fails only on this specific distro and not any other. |
Because other distros are usually Linux? |
Ahh...I didn't realize. |
BTW, I tried this:
This allowed the
So this apparently needs more work :-(. |
I think it'd be best if you submitted a PR. I don't think I can reasonably verify this, as I'm not familiar with this OS. |
Is what I propose above for |
If the problem is just with gai_res = await getaddrinfo(
local_host,
local_port or None,
family=family,
type=socket.SocketKind.SOCK_STREAM if sys.platform == "win32" else 0,
flags=socket.AI_PASSIVE | socket.AI_ADDRCONFIG,
) This at least passes my local tests. |
I tried:
And I see the same failure here:
So it looks like this failure is not platform agnostic as I hoped :-(. |
It's just one failure, or are there more? |
This is the complete list of failed test with
The
and all other tests from the initial list are passing now. |
... and these failures are not related to
|
In other words, your proposed change (or mine, they are effectively very similar) is clearly improving things. But it looks like the similar issue is in |
I don't think I can effectively work on these if I can't reproduce them. |
Okay, np. Will you accept a PR if I create it based on my |
I'd much prefer a PR that fixes all of the problems you're seeing. I can help you figure out the rest. |
Hmmm, I see those as different issues, so I'd prefer to handle them separately... Anyway, what do you suggest for the |
From my PoV, they all fall under the umbrella of "fails on Illumos, works everywhere else".
That's something you need to dive into – check why the attribute isn't available. The |
I think that what's happening here is that the attribute is actually found, but its getter raises |
That said, the accessor doesn't do any dict lookups so I don't understand where the |
This should be easier to debug on latest AnyIO as the aforementioned bug with |
Things to check first
I have searched the existing issues and didn't find my bug already reported there
I have checked that my bug is still present in the latest release
AnyIO version
4.3.0
Python version
3.9.18
What happened?
Several
anyio
tests fails with this error:Here is the complete list of tests with this failure:
The problem seems to be that
getaddrinfo
is called withport=0
. The similar issue was already fixed in eventlet (please read the link for more details about the issue).How can we reproduce the bug?
Run
anyio
tests on OpenIndiana.The text was updated successfully, but these errors were encountered: