Skip to content

Commit c18d799

Browse files
committed
Q-Block: Better timing / recovering when rate limiting
Make use of an outstanding list of blocks to transmit to remove duplicates and only send one at a time if rate-limiting.
1 parent 169eccb commit c18d799

3 files changed

Lines changed: 243 additions & 118 deletions

File tree

include/coap3/coap_block_internal.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ struct coap_lg_xmit_t {
177177
coap_tick_t last_obs; /**< Last time used (Observe tracking) or 0 */
178178
#if COAP_Q_BLOCK_SUPPORT
179179
coap_tick_t non_timeout_random_ticks; /** Used for Q-Block */
180+
coap_rblock_t send_blocks; /**< list of blocks still to send */
180181
#endif /* COAP_Q_BLOCK_SUPPORT */
181182
uint32_t ref; /**< Reference count */
182183
};

0 commit comments

Comments
 (0)