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

join_multicast_v6 doesn't work (0.5.7) #525

Open
paigeadelethompson opened this issue Aug 13, 2024 · 3 comments
Open

join_multicast_v6 doesn't work (0.5.7) #525

paigeadelethompson opened this issue Aug 13, 2024 · 3 comments

Comments

@paigeadelethompson
Copy link

seems like what I have here is a test case where join_multicast_v4 succeeds and join_multicast_v6 doesn't, it behaves differently depending on whether you're on MacOS, Linux or FreeBSD:

https://gist.github.com/paigeadelethompson/57a948bfd6966363efa5c4b8f26acd38

kinda stumped

@Thomasdezeeuw
Copy link
Collaborator

It seems you're getting a EDEADLK (errno 35) deadlock error? Not one I've seen in a while 😅

But it doesn't seem like the socket2 call is failing, the problem seems to be the setup. Since the code is very much hardware specific, e.g. the interface setup, it's hard to help.

@paigeadelethompson
Copy link
Author

interesting I'll poke around at it a bit, seems odd that this would work for ipv4 and not ipv6 though. Coinicidentally there isn't any test coverage for join_multicast_v6 in socket2's test cases that I can see, just v4:

https://github.com/rust-lang/socket2/blob/master/tests/socket.rs#L1502

@Thomasdezeeuw
Copy link
Collaborator

Some more test coverage would be nice :)

Took a quick look at the API for Linux and it seems correct, need to check macOS, FreeBSD as well.

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

No branches or pull requests

2 participants