From c63634ec76b5931dca0693413165b07a7b7d1a60 Mon Sep 17 00:00:00 2001 From: Bruno Obsomer Date: Thu, 21 May 2020 08:06:14 +0200 Subject: [PATCH] Increase reception buffer size --- coapthon/client/coap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coapthon/client/coap.py b/coapthon/client/coap.py index d2bed4c..3a77e1a 100644 --- a/coapthon/client/coap.py +++ b/coapthon/client/coap.py @@ -239,7 +239,7 @@ class CoAP(object): while not self.stopped.isSet(): self._socket.settimeout(0.1) try: - datagram, addr = self._socket.recvfrom(1152) + datagram, addr = self._socket.recvfrom(1500) except socket.timeout: # pragma: no cover continue except Exception as e: # pragma: no cover