mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-29 01:57:09 +03:00
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:
1 parent
bfdbdc3e25
commit
7551d2e147
2 files changed
+23
-11
No files matched your search
@@ -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 */
|
||||
|
||||
Reference in new issue
Block a user