-
Notifications
You must be signed in to change notification settings - Fork 322
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
avahi-browse sometimes never stop despite terminate option #444
Comments
Take a look at the code of I am not quite familiar with the avahi code, but looking at the following segment of code: Maybe there is something that stops the avahi client from getting such event, such as having an update of list of services every second? The 1150 lines in 5s means there is a lot of services running on your large L2. In my small L2 network, I used |
@StephDC thanks for your feedback. |
Looks like it's a duplicate of #264. |
@Cyanat could you try the patch from #264 (comment) to see if it works for you? |
Could you paste the output of |
…e resolvers fail/time out Related to avahi#264 This PR addresses one particular scenario. There can be other scenarios preventing avahi-browse from stopping: avahi#444 (comment) but they should be identified and fixed one by one.
Unfortunately, I don't have enough devices in my test network to reproduce this issue, and I can't easily test it on production. Additionally, I've attempted to recompile Avahi with your patch in an Ubuntu container, but the ./bootstrap.sh command never seems to finish (sorry, I'm not very confident with building Avahi from source...). Please find the result of my avahi-browse below and the corresponding wireshark (filtered on mdns). My avahi server is on 10.12.0.8. Anyway, thanks a lot for your concern! |
Could you redirect stderr to avahi-browse -arpt >& result.txt and attach it just in case? It should make it easier to spot places where resolvers fail/time out (if they fail/time out) and where other things fail. |
Here it is: |
I took a quick look and didn't notice anything unusual. The resolvers didn't fail, avahi-client didn't hit any D-Bus limits preventing it from creating new browsers/resolvers and so on. To judge from the pcap avahi got service announcements relatively often but trying to reproduce it I bombarded avahi with much more different services (where it hit the D-Bus limits) much more often (where packets were just dropped) and couldn't reproduce it. I tested it with the master branch though where things like b3ad387 are fixed and the ALL_FOR_NOW event relies on timeouts heavily. Anyway I'll try to take a closer look at the pcap. All I can say at this point is that the patch from #264 (comment) is unlikely to fix this issue. |
Hi!
Here is my command to debug:
avahi-browse -arpt > result.txt && wc -l result.txt
Generally, result file is generated in less than 5s with about 1150 lines, but sometimes, it seems the terminate option isn't respected and command never ends.
In that case if I CTRL+C the command after a minutes, I have about 1400 lines. More I wait, more I have lines, it make sense and the number of additionnal lines seems not to be excessives. However, I can't see why the terminate option hasn't been respected.
I'm using avahi 0.7. Unfortunatelly, I don't have opportunity to upgrade easily to 0.8, but reading the release note, I don't see a bug fix relative to my problem.
Any idea of what could be the problem?
Best regards.
The text was updated successfully, but these errors were encountered: