Remove unreachable socket buffering check code in connection (#710)
This commit is contained in:
parent
b7e319b26a
commit
2f49f804e5
|
@ -291,14 +291,7 @@ class APIConnection:
|
||||||
sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
|
sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
|
||||||
# Try to reduce the pressure on esphome device as it measures
|
# Try to reduce the pressure on esphome device as it measures
|
||||||
# ram in bytes and we measure ram in megabytes.
|
# ram in bytes and we measure ram in megabytes.
|
||||||
try:
|
sock.setsockopt(socket.SOL_SOCKET, socket.SO_RCVBUF, BUFFER_SIZE)
|
||||||
sock.setsockopt(socket.SOL_SOCKET, socket.SO_RCVBUF, BUFFER_SIZE)
|
|
||||||
except OSError as err:
|
|
||||||
_LOGGER.warning(
|
|
||||||
"%s: Failed to set socket receive buffer size: %s",
|
|
||||||
self.log_name,
|
|
||||||
err,
|
|
||||||
)
|
|
||||||
|
|
||||||
if self._debug_enabled:
|
if self._debug_enabled:
|
||||||
_LOGGER.debug(
|
_LOGGER.debug(
|
||||||
|
|
Loading…
Reference in New Issue