Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

increase socket buffer size 1024->4096 #1075

Merged
merged 1 commit into from Jun 20, 2021

Conversation

starkillerOG
Copy link
Contributor

When a gateway has 30+ devices connected the message of the device list becomes bigger than 1024 bytes.
That means only part of the message is read, and therefore the checksum will not match and you get an error.
simply increasing the buffer size fixed this issue.
See home-assistant/core#51229

When a gateway has 30+ devices connected the message of the device list becomes bigger than 1024 bytes.
That means only part of the message is read, and therefore the checksum will not match and you get an error.
simply increasing the buffer size fixed this issue.
See home-assistant/core#51229
@codecov-commenter
Copy link

codecov-commenter commented Jun 20, 2021

Codecov Report

Merging #1075 (0cfcb35) into master (89a9ed9) will not change coverage.
The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1075   +/-   ##
=======================================
  Coverage   75.40%   75.40%           
=======================================
  Files          73       73           
  Lines        8367     8367           
  Branches      745      745           
=======================================
  Hits         6309     6309           
  Misses       1874     1874           
  Partials      184      184           
Impacted Files Coverage Δ
miio/miioprotocol.py 32.63% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 89a9ed9...0cfcb35. Read the comment docs.

@starkillerOG
Copy link
Contributor Author

@rytilahti could you merge this extremely small PR?

@rytilahti
Copy link
Owner

Good catch! LGTM 👍

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.

None yet

3 participants