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

Timeout of 2 minutes on mdns resolution #96

Open
sleman opened this issue Feb 6, 2020 · 1 comment
Open

Timeout of 2 minutes on mdns resolution #96

sleman opened this issue Feb 6, 2020 · 1 comment

Comments

@sleman
Copy link

sleman commented Feb 6, 2020

I'm advertising a service on similar to the example:

var service = new ServiceProfile("x", "_foo._tcp", 1024);
var sd = new ServiceDiscovery();
sd.Announce(service);
sd.Advertise(service);

I run this on a windows machine with .net 4.6.1.

On Mac, I can see the service using dns-sd. It resolves to x.foo.local. If I ping x.foo.local on the mac, it resolves the windows machine IP address and pings are successful. After exactly two minutes, If i start a new ping, it fails to resolve the IP address even though my app is still running.

I also tried sd .Mdns.Start(); and the issue still occurs.

I'm running latest (0.27.0) from NuGet.

@davidzwa
Copy link

davidzwa commented Mar 17, 2020

Hmm, I'm able to successfully keep a connection live for more than weeks, but I do have to admit I havent got true logging information. I will ask my work group to setup a e2e testing setup, so we can test the ins and outs of this library.

My experience: firewall of Windows throws mud in the water. Maybe try and use something like Bonjour Browser or ZeroconfDiscovery tools to get more info on that moment. I'd be eager to hear back if you've done so.

@richardschneider any hunch to what the cause might be?

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