Fix loop on dropped connection#249
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #249 +/- ##
==========================================
- Coverage 62.99% 62.91% -0.08%
==========================================
Files 16 16
Lines 1732 1734 +2
Branches 184 185 +1
==========================================
Hits 1091 1091
- Misses 589 591 +2
Partials 52 52
|
bb87607 to
3942e2a
Compare
3942e2a to
4576669
Compare
|
Switched back and forth from wifi to lte about 50 times and everything is still working. I can't reproduce the loop after this fix. I'm leaving this marked as draft so I can do some more testing in the morning. Finally have an explanation for the random cpu spikes! |
|
Managed to repro again but this time its moved to this line |
There was an unchecked recv that loop forever if the connection was dropped
4576669 to
9dd95e7
Compare
|
Looks good now. Also camera streams now start noticeably faster. |
And iOS 12.4.6 seem to have a bug where ever char is subscribed to twice. |
|
That’s some nice debugging 👌🏼good work! Let me know when I can merge |
|
@ikalchev Everything was stable overnight. Should be good to go now |
|
Thanks @ikalchev Can we get a new release. I'd like to get Home Assistant updated today or tomorrow so it goes out in beta |
|
Does tomorrow morning work for you? (Utc +2) |
|
That was a sloppy release I did there, but everything should be fine. The tag is on the dev branch though, sorry. |
Thanks for the release. 👍 I'll update Home Assistant's dependency later today. After Home Assistant 0.110 is released I will have a few more small cleanup PRs for things I've addressed downstream. |
Fix race condition that causes pairing and unpairing failures. ikalchev/HAP-python#246 Fix loop on dropped connections that causes temporary stalls and connection loss. ikalchev/HAP-python#249 Fix exception on missing video fields. ikalchev/HAP-python#245
Fix race condition that causes pairing and unpairing failures. ikalchev/HAP-python#246 Fix loop on dropped connections that causes temporary stalls and connection loss. ikalchev/HAP-python#249 Fix exception on missing video fields. ikalchev/HAP-python#245
I've been trying to catch this happening for a few months and finally
managed to catch it happening.
Pyhap loop