mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-25 08:31:04 +03:00
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:
1 parent
614b096319
commit
0c837cdc77
1 file changed
+2
-1
+2
-1
@@ -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 */
|
||||
|
||||
|
||||
Reference in new issue
Block a user