mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2024-09-30 04:47:30 +02:00
Make failure to increase the recv buffer size non-fatal
We now try to set the buffer to 2097152, 1048576, 524288, 262144, 131072 before giving up and logging a warning
This commit is contained in:
parent
8871ec0668
commit
47860f455b
@ -413,8 +413,8 @@ class APIConnection:
|
|||||||
if new_buffer_size <= MIN_BUFFER_SIZE:
|
if new_buffer_size <= MIN_BUFFER_SIZE:
|
||||||
_LOGGER.warning(
|
_LOGGER.warning(
|
||||||
"%s: Unable to increase the socket receive buffer size to %s; "
|
"%s: Unable to increase the socket receive buffer size to %s; "
|
||||||
"The connection may not be unstable if the ESPHome device "
|
"The connection may unstable if the ESPHome device sends "
|
||||||
"sends at volume (ex. a Bluetooth proxy or camera): %s",
|
"data at volume (ex. a Bluetooth proxy or camera): %s",
|
||||||
self.log_name,
|
self.log_name,
|
||||||
new_buffer_size,
|
new_buffer_size,
|
||||||
err,
|
err,
|
||||||
|
Loading…
Reference in New Issue
Block a user