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

Failed to set multicast interface: no such interface #1

Open
kirollosnct opened this issue Jan 13, 2025 · 0 comments
Open

Failed to set multicast interface: no such interface #1

kirollosnct opened this issue Jan 13, 2025 · 0 comments

Comments

@kirollosnct
Copy link

kirollosnct commented Jan 13, 2025

Hello :)

The following console logs are sent infinitely when a network interface being multicased on has been disconnected, since the zeroconf stack continuously attempts to send multicast packets on a static set of interfaces configured on instantiation with no check whether the interface is alive.

2025/01/13 20:53:51 [WARN] mdns: Failed to set multicast interface: no such interface
2025/01/13 20:53:53 [WARN] mdns: Failed to set multicast interface: no such interface
2025/01/13 20:53:56 [WARN] mdns: Failed to set multicast interface: setsockopt: The requested address is not valid in its context.
2025/01/13 20:53:58 [WARN] mdns: Failed to set multicast interface: setsockopt: The requested address is not valid in its context.
2025/01/13 20:54:02 [WARN] mdns: Failed to set multicast interface: setsockopt: The requested address is not valid in its context.
2025/01/13 20:54:05 [WARN] mdns: Failed to set multicast interface: setsockopt: The requested address is not valid in its context.
2025/01/13 20:54:20 [WARN] mdns: Failed to set multicast interface: setsockopt: The requested address is not valid in its context.
2025/01/13 20:54:21 [WARN] mdns: Failed to set multicast interface: setsockopt: The requested address is not valid in its context.

These messages are triggered from both client.go and server.go.

Steps to reproduce:

  1. Start a zeroconf service with selecting at least one connected network interface
  2. Intentionally disconnect from a network interface
  3. Observe console logs
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

1 participant