New ServiceBrowsers now request QU in the first outgoing when unspecified#812
Merged
bdraco merged 2 commits intoJun 22, 2021
Conversation
…fied https://datatracker.ietf.org/doc/html/rfc6762#section-5.4 When we start a ServiceBrowser and zeroconf has just started up, the known answer list will be small. By asking a QU question first, it is likely that we have a large known answer list by the time we ask the QM question a second later (current default). This reduces the amount of traffic on the network, and has the secondary advantage that most responders will answer a QU question without the typical delay answering QM questions.
2656889 to
c4fe8f4
Compare
Codecov Report
@@ Coverage Diff @@
## master #812 +/- ##
=======================================
Coverage 98.69% 98.69%
=======================================
Files 22 22
Lines 2298 2303 +5
Branches 393 395 +2
=======================================
+ Hits 2268 2273 +5
Misses 18 18
Partials 12 12
Continue to review full report at Codecov.
|
Member
Author
|
Looks like PyPy is taking longer to get the first query started. We probably need some way to synchronize the threads a bit better in the test or move it to asyncio also explains why #768 fails |
Member
Author
|
We can decrease time between queries to work around the pypy startup delay. I'll look into making a helper that synchronizes the startup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://datatracker.ietf.org/doc/html/rfc6762#section-5.4
When we start a ServiceBrowser and zeroconf has just started up, the known
answer list will be small. By asking a QU question first, it is likely
that we have a large known answer list by the time we ask the QM question
a second later (current default which is likely too low but would be
a breaking change to increase). This reduces the amount of traffic on
the network, and has the secondary advantage that most responders will
answer a QU question without the typical delay answering QM questions.