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:
|
||||
_LOGGER.warning(
|
||||
"%s: Unable to increase the socket receive buffer size to %s; "
|
||||
"The connection may not be unstable if the ESPHome device "
|
||||
"sends at volume (ex. a Bluetooth proxy or camera): %s",
|
||||
"The connection may unstable if the ESPHome device sends "
|
||||
"data at volume (ex. a Bluetooth proxy or camera): %s",
|
||||
self.log_name,
|
||||
new_buffer_size,
|
||||
err,
|
||||
|
|
Loading…
Reference in New Issue