Merge pull request #30 from bobzomer/master

Increase reception buffer size
This commit is contained in:
Giacomo Tanganelli 2020-05-21 14:59:54 +02:00 committed by GitHub
commit 89d51737a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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