mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-01 07:25:47 +03:00
If the ACK (not empty) response gets lost, the repeated CON request will just get the cached response without invoking further analysis. This stops things like OSCORE reporting retry issues. This functionality needs to be enabled by setting the COAP_BLOCK_CACHE_RESPONSE bit when calling coap_context_set_block_mode(). If not enabled, then, for OSCORE the response is sent as a separate response (empty ACK followed by CON response), which is how code previous to this PR works.