nanocoap/sock: re-try if wrong block was received#20952
nanocoap/sock: re-try if wrong block was received#20952maribu merged 1 commit intoRIOT-OS:masterfrom
Conversation
f8f3e21 to
08c62b4
Compare
08c62b4 to
9b25c03
Compare
That's not the best motivation. But networks are not always order preserving and consistent in their latency. I think we are supposed to be prepared that an no longer expected block can arrive out of order even with a correct CoAP server, so this makes sense even for non go-coap users. |
Usually that would be caught by |
|
Ah, indeed, we do implement duplicate detection on client side. |
Contribution description
Our go-coap server sometimes responds with block 0 to a block2 request. This breaks SUIT updates.
An easy fix is to just try again when an unexpected block was received, we then get the expected block.
Testing procedure
master
this PR
Issues/PRs references