Skip to content

Reduce the time window that the handlers lock is held#287

Merged
jstasiak merged 1 commit into
python-zeroconf:masterfrom
bdraco:hold_lock_less_time
Aug 30, 2020
Merged

Reduce the time window that the handlers lock is held#287
jstasiak merged 1 commit into
python-zeroconf:masterfrom
bdraco:hold_lock_less_time

Conversation

@bdraco

@bdraco bdraco commented Aug 9, 2020

Copy link
Copy Markdown
Member

Unfortunately, I'm still seeing what I think are instances of #255 on very busy networks.

This builds on #258 to only hold the lock if we have an update.

@mattsaxon Does this violate any of your assumptions ?

@bdraco bdraco force-pushed the hold_lock_less_time branch 2 times, most recently from d6588fe to 6b784fc Compare August 9, 2020 16:13
@coveralls

coveralls commented Aug 9, 2020

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.1%) to 93.095% when pulling 193ad11 on bdraco:hold_lock_less_time into fca090d on jstasiak:master.

@bdraco

bdraco commented Aug 22, 2020

Copy link
Copy Markdown
Member Author

Pushing a rebase to get this in sync with HEAD

Only hold the lock if we have an update.
@jstasiak

Copy link
Copy Markdown
Collaborator

@mattsaxon do you see any issues with this?

@mattsaxon

Copy link
Copy Markdown
Collaborator

@jstasiak looks very sensible to me!

@jstasiak

Copy link
Copy Markdown
Collaborator

Cheers, merging then!

@jstasiak jstasiak merged commit 5a359bb into python-zeroconf:master Aug 30, 2020
@bdraco

bdraco commented Aug 30, 2020

Copy link
Copy Markdown
Member Author

@jstasiak TYVM. Can we get a release? I'm hoping this solves the round of homekit cases 🤞

bdraco added a commit to bdraco/home-assistant that referenced this pull request Aug 30, 2020
Changes:
python-zeroconf/python-zeroconf#287

Hopefully this will fix the last round of HomeKit issues
@jstasiak

Copy link
Copy Markdown
Collaborator

@bdraco No problem. Sure, 0.28.3 is out with your change!

@bdraco

bdraco commented Aug 31, 2020

Copy link
Copy Markdown
Member Author

@bdraco No problem. Sure, 0.28.3 is out with your change!

Thank you!

bdraco added a commit to home-assistant/core that referenced this pull request Aug 31, 2020
Changes:
python-zeroconf/python-zeroconf#287

Hopefully this will fix the last round of HomeKit issues
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.

4 participants