Increase reception buffer size

This commit is contained in:
Bruno Obsomer 2020-05-21 08:06:14 +02:00
parent 985763bfe2
commit c63634ec76

View file

@ -239,7 +239,7 @@ class CoAP(object):
while not self.stopped.isSet(): while not self.stopped.isSet():
self._socket.settimeout(0.1) self._socket.settimeout(0.1)
try: try:
datagram, addr = self._socket.recvfrom(1152) datagram, addr = self._socket.recvfrom(1500)
except socket.timeout: # pragma: no cover except socket.timeout: # pragma: no cover
continue continue
except Exception as e: # pragma: no cover except Exception as e: # pragma: no cover