block handling: Update lg_crcv->last_used when sending Block1

This prevents premature de-allocation of the lg_crcv when large
files are getting uploaded.
This commit is contained in:
Jon Shallow authored and Jon Shallow committed 2024-07-16 11:11:33 +01:00
1 parent bfdbdc3e25
commit 7551d2e147
2 files changed
+23 -11

No files matched your search

+1
View File
@@ -154,6 +154,7 @@ struct coap_lg_xmit_t {
coap_l_block1_t b1;
coap_l_block2_t b2;
} b;
coap_lg_crcv_t *lg_crcv; /**< The lg_crcv associated with this blocked xmit */
coap_pdu_t pdu; /**< skeletal PDU */
coap_tick_t last_payload; /**< Last time MAX_PAYLOAD was sent or 0 */
coap_tick_t last_sent; /**< Last time any data sent */