Implement duplicate question supression#770
Merged
bdraco merged 28 commits intoJun 20, 2021
Merged
Conversation
bdraco
commented
Jun 20, 2021
Member
Author
|
Need to make sure we do not record QU questions as we can only suppress QM questions |
Codecov Report
@@ Coverage Diff @@
## master #770 +/- ##
==========================================
- Coverage 98.41% 98.39% -0.02%
==========================================
Files 20 21 +1
Lines 2204 2240 +36
Branches 375 380 +5
==========================================
+ Hits 2169 2204 +35
Misses 22 22
- Partials 13 14 +1
Continue to review full report at Codecov.
|
…uestion_suppression
Member
Author
|
Verified its only suppressing what it should |
Fixes deadlock in
```
zeroconf/_services/browser.py:442: in cancel
asyncio.run_coroutine_threadsafe(self._async_cancel_browser(), self.zc.loop).result()
```
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-7.3
7.3. Duplicate Question Suppression
If a host is planning to transmit (or retransmit) a query, and it
sees another host on the network send a query containing the same
"QM" question, and the Known-Answer Section of that query does not
contain any records that this host would not also put in its own
Known-Answer Section, then this host SHOULD treat its own query as
having been sent. When multiple queriers on the network are querying
for the same resource records, there is no need for them to all be
repeatedly asking the same question.
Fixes #721