PelionIoT / mbed-coap

CoAP C library - Builder and Parser for CoAP messages
Apache License 2.0
29 stars 16 forks source link

Mark received block response as ACK so caller does not process it again #133

Closed anttiylitokola closed 3 years ago

anttiylitokola commented 3 years ago

This will revert commit a809a60

Can happen that block1 response with same message id is received again even when block-wise transfer has gone further. Changing COAP_STATUS_OK to COAP_STATUS_PARSER_BLOCKWISE_ACK make sure that caller does not process message again.

This will fix error: IOTCLT-4864 - Client <-> Server message id lists out-of-sync causing misidentification of coap duplication

[x I confirm this contribution is my own and I agree to license it with Apache 2.0. [x I confirm the moderators may change the PR before merging it in.

Summary of changes