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

Switch mdns library #257

Closed
Stebalien opened this issue Dec 14, 2017 · 8 comments
Closed

Switch mdns library #257

Stebalien opened this issue Dec 14, 2017 · 8 comments
Labels
help wanted Seeking public contribution on this issue kind/bug A bug in existing code (including security flaws)

Comments

@Stebalien
Copy link
Member

Either (a) switch to a fork or, even better, switch to https://github.com/grandcat/zeroconf. The current library is unmaintained and has at least one data race (and parts of it are incomprehensible).

@Stebalien Stebalien assigned Stebalien and unassigned Stebalien Dec 14, 2017
@Stebalien Stebalien added kind/bug A bug in existing code (including security flaws) help wanted Seeking public contribution on this issue labels Dec 14, 2017
@Stebalien
Copy link
Member Author

Stebalien commented Feb 26, 2018

Also needs to fix:

@Stebalien
Copy link
Member Author

Closing in favor of #623.

@kpp
Copy link
Contributor

kpp commented Aug 23, 2019

@Stebalien
Copy link
Member Author

We've fixed all the ones fixed upstream.

@kpp
Copy link
Contributor

kpp commented Aug 23, 2019

Where?

@Stebalien
Copy link
Member Author

whyrusleeping/mdns@9d49aa4

Looking at a diff between the two versions, it looks like the only remaining change we need is the ability to turn off (or redirect) logging. We should probably upstream that and then get off the fork (eventually).

@kpp
Copy link
Contributor

kpp commented Aug 24, 2019

whyrusleeping/mdns@9d49aa4

Mutex is a bad solution because of:

$ go vet
# github.com/whyrusleeping/mdns
./client.go:165:41: call of logf copies lock value: github.com/whyrusleeping/mdns.client contains sync.Mutex

Looking at a diff between the two versions, it looks like the only remaining change we need is the ability to turn off (or redirect) logging.

What do you mean? I am new to go

@Stebalien
Copy link
Member Author

Mutex is a bad solution because of:

That's just a really stupid debug line. It shouldn't be copying the client. Fix in whyrusleeping/mdns#8.

What do you mean? I am new to go

This version supports suppressing log output (error/info messages to standard error) and the upstream version doesn't.

marten-seemann pushed a commit that referenced this issue Apr 21, 2022
fix: avoid returning typed nils
@MarcoPolo MarcoPolo mentioned this issue Jul 7, 2022
41 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Seeking public contribution on this issue kind/bug A bug in existing code (including security flaws)
Projects
None yet
Development

No branches or pull requests

2 participants