Skip to content

Avoid disconnect on short read#235

Merged
ikalchev merged 3 commits intoikalchev:devfrom
bdraco:handle_disconnect_short_read
Apr 6, 2020
Merged

Avoid disconnect on short read#235
ikalchev merged 3 commits intoikalchev:devfrom
bdraco:handle_disconnect_short_read

Conversation

@bdraco
Copy link
Copy Markdown
Contributor

@bdraco bdraco commented Apr 4, 2020

Handle short read in crypto stream

  • This implements the TODO to handle the short read.

  • recv_into should be a bit more efficient as well.

This implements the TODO to handle the short read.

recv_into should be a bit more efficient as well.
@bdraco bdraco force-pushed the handle_disconnect_short_read branch from ac451b3 to ab3a110 Compare April 4, 2020 19:28
@bdraco bdraco changed the title Handle disconnect short read Avoid disconnect on short read Apr 4, 2020
@codecov-io
Copy link
Copy Markdown

codecov-io commented Apr 4, 2020

Codecov Report

Merging #235 into dev will decrease coverage by 0.14%.
The diff coverage is 11.11%.

@@            Coverage Diff             @@
##              dev     #235      +/-   ##
==========================================
- Coverage   62.84%   62.70%   -0.15%     
==========================================
  Files          16       16              
  Lines        1720     1724       +4     
  Branches      178      179       +1     
==========================================
  Hits         1081     1081              
- Misses        594      598       +4     
  Partials       45       45              
Impacted Files Coverage Δ
pyhap/hap_server.py 36.82% <11.11%> (-0.30%) ⬇️

@bdraco
Copy link
Copy Markdown
Contributor Author

bdraco commented Apr 4, 2020

Not urgent as its rare. Likely could go with #231

@bdraco
Copy link
Copy Markdown
Contributor Author

bdraco commented Apr 5, 2020

May fix #230

Comment thread pyhap/hap_server.py Outdated
@bdraco
Copy link
Copy Markdown
Contributor Author

bdraco commented Apr 5, 2020

Testing...

@bdraco
Copy link
Copy Markdown
Contributor Author

bdraco commented Apr 5, 2020

Switched over 4 Home Assistant installs to the new code. so far so good

@bdraco
Copy link
Copy Markdown
Contributor Author

bdraco commented Apr 6, 2020

Stable and very responsive with 347 devices linked between 4 hass installs

@ikalchev ikalchev merged commit 51cb473 into ikalchev:dev Apr 6, 2020
@bdraco
Copy link
Copy Markdown
Contributor Author

bdraco commented Apr 6, 2020

All good overnight as well

@bdraco
Copy link
Copy Markdown
Contributor Author

bdraco commented Apr 6, 2020

@ikalchev Any chance you have a spare moment to get another version bump?

@ikalchev
Copy link
Copy Markdown
Owner

ikalchev commented Apr 6, 2020

Yes I will do it tonight

@ikalchev
Copy link
Copy Markdown
Owner

ikalchev commented Apr 6, 2020

2.8.1 released. Let me know if something's wrong. I now see one test started failing, but I think it's the test itself that has issues. Will look more into it in the coming days.

@bdraco
Copy link
Copy Markdown
Contributor Author

bdraco commented Apr 6, 2020

@ikalchev Thank you. Looks like its the camera test failing. Since Home Assistant doesn't have HAP camera support yet if there is something wrong it likely won't get noticed.

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.

3 participants