Skip to content

fix: addresses incorrect after server name change#1154

Merged
bdraco merged 2 commits into
masterfrom
server_name_change
Apr 3, 2023
Merged

fix: addresses incorrect after server name change#1154
bdraco merged 2 commits into
masterfrom
server_name_change

Conversation

@bdraco

@bdraco bdraco commented Apr 3, 2023

Copy link
Copy Markdown
Member

If the server name changed we would return the addresses for the old server name.

If the server name differed from the record name we would include the wrong addresses if the SRV record was not already in the cache because we would never ask for it and use the record name to lookup the A/AAAA records.

The downside is that this will likely increase the number of network requests but #1153 should mitigate the impact of that a bit

@bdraco bdraco force-pushed the server_name_change branch from d623698 to 7681d7a Compare April 3, 2023 19:46
@codecov

codecov Bot commented Apr 3, 2023

Copy link
Copy Markdown

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (9b6adcf) 99.76% compared to head (a995473) 99.77%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1154   +/-   ##
=======================================
  Coverage   99.76%   99.77%           
=======================================
  Files          22       22           
  Lines        2608     2646   +38     
  Branches      457      461    +4     
=======================================
+ Hits         2602     2640   +38     
  Misses          4        4           
  Partials        2        2           
Impacted Files Coverage Δ
src/zeroconf/__init__.py 100.00% <100.00%> (ø)
src/zeroconf/_core.py 100.00% <100.00%> (ø)
src/zeroconf/_handlers.py 100.00% <100.00%> (ø)
src/zeroconf/_services/info.py 100.00% <100.00%> (ø)
src/zeroconf/_services/registry.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 changed the title fix: server name changes were returning the old addresses fix: server name changes returning the old addresses Apr 3, 2023
@bdraco bdraco changed the title fix: server name changes returning the old addresses fix: addresses incorrect after server name change Apr 3, 2023
@bdraco bdraco marked this pull request as ready for review April 3, 2023 20:36
Comment thread src/zeroconf/_handlers.py Outdated
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