mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-11 19:30:40 +03:00
Track the RCV mtu size separately from the XMT mtu, so that sufficiently large PDUs can be built for receiving incoming data. Wait until reliable session is complete and the initial CSM have been exchanged before building any new PDUs for transmission so that they can hold the appropriate amount of Max-Message-Size data. Add in support into coap-server and coap-client for defining the Max-Message-Size to use by adding in 2 new functions coap_context_set_csm_max_message_size() and coap_context_get_csm_max_message_size(). Add in flexibility into coap-server to control the initial example_data size. Requires #844 to prevent recursive mutex locking when initiating proxy ongoing session to upstream server.