cn-uofbasel / ccn-lite

CCN-lite, a lightweight implementation of the CCNx protocol and its variations
ISC License
74 stars 63 forks source link

ccn-lite-riot: remove message from queue on remove interest #359

Closed PeterKietzmann closed 5 years ago

PeterKietzmann commented 5 years ago

Contribution description

This PR removes any message that relates to an Interest from the RIOT message queue of the the CCN-lite thread, when removing this Interest (i.e., by ccnl_interest_remove()). This fixes a rare case that occurs when a retransmission message is queued and can't be processed before the pending Interest is satisfied, which will call ccnl_interest_remove(). Without this fix, the message will be processed at some point and reference an Interest that doesn't exist anymore.