mirror of
https://github.com/obgm/libcoap.git
synced 2026-10-31 23:15:48 +03:00
If calculated timeout is 0 in coap_io_prepare_io_lkd(), then do not set overall timeout to 0 so that when passed back to caller it does not get reset to the caller's max defined timeout. Updated some timeout check functions to update remaining timeout in a new parameter and to return 1 if this parameter was updated, else 0. for simplicity. It was also unsafe to set the initial max timeout value to -1 as coap_tick_t can be int64_t.