pdu.h: increase Max-Message-Size by 256 B

To allow for 8 MiB payloads, the maximum message size value for
TCP has been increased by 256 B option space.
This commit is contained in:
Olaf Bergmann committed 2017-11-11 10:06:16 +01:00
1 parent 614b096319
commit 0c837cdc77
1 file changed
+2 -1
+2 -1
View File
@@ -47,7 +47,8 @@ struct coap_session_t;
#if defined(WITH_CONTIKI) || defined(WITH_LWIP)
#define COAP_DEFAULT_MAX_PDU_RX_SIZE (COAP_MAX_MESSAGE_SIZE_TCP16+4)
#else
#define COAP_DEFAULT_MAX_PDU_RX_SIZE (8*1024*1024)
/* 8 MiB max-message-size plus some space for options */
#define COAP_DEFAULT_MAX_PDU_RX_SIZE (8*1024*1024+256)
#endif
#endif /* COAP_DEFAULT_MAX_PDU_RX_SIZE */