Skip to content

feat: reduce denial of service protection overhead#1157

Merged
bdraco merged 3 commits into
masterfrom
drop_some_isinstance
Apr 7, 2023
Merged

feat: reduce denial of service protection overhead#1157
bdraco merged 3 commits into
masterfrom
drop_some_isinstance

Conversation

@bdraco

@bdraco bdraco commented Apr 7, 2023

Copy link
Copy Markdown
Member

If there is a device with a bad mdns stack that is flooding the network with response packets there is little we can do but optimize how we handle this as mdns works on a trust model of generally accepting network traffic. Its unlikely that the user is going to remove the offending the device so we will reduce the overhead to deal with one of these.

bdraco added 3 commits April 7, 2023 12:39
If there is a device with a bad mdns stack that is flooding
the network with response packets there is little we can do
but optimize how we handle this as mdns works on a trust model
of generally accepting network traffic. Its unlikely that the
user is going to remove the offending the device so we will
reduce the overhead to deal with one of these.
@codecov

codecov Bot commented Apr 7, 2023

Copy link
Copy Markdown

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.01 ⚠️

Comparison is base (b65e279) 99.81% compared to head (de29d6e) 99.81%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1157      +/-   ##
==========================================
- Coverage   99.81%   99.81%   -0.01%     
==========================================
  Files          22       22              
  Lines        2654     2652       -2     
  Branches      463      463              
==========================================
- Hits         2649     2647       -2     
  Misses          3        3              
  Partials        2        2              
Impacted Files Coverage Δ
src/zeroconf/__init__.py 100.00% <100.00%> (ø)
src/zeroconf/_handlers.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@bdraco

bdraco commented Apr 7, 2023

Copy link
Copy Markdown
Member Author

This helps a lot with those sonoff plugs that use mdns to send state updates.... 🤦

@bdraco bdraco marked this pull request as ready for review April 7, 2023 23:10
@bdraco bdraco merged commit 2c2f26a into master Apr 7, 2023
@bdraco bdraco deleted the drop_some_isinstance branch April 7, 2023 23:10
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

Successfully merging this pull request may close these issues.

1 participant