make a read call to a modbus device over TCP (i.e. modbus_read_input_bits) with a 10 second timeout and call modbus_close(ctx); then modbus_free(ctx);, when modbus_read_input_bits returns, I am seeing an assert fail on my boost unique_ptr which wraps my libmodbus class.
Expected behaviour
is there a way to cause all timeouts to return immediately when modbus_close is called?
libmodbus version
OS and/or distribution
Environment
Description
modbus_read_input_bits
) with a 10 second timeout and callmodbus_close(ctx);
thenmodbus_free(ctx);
, whenmodbus_read_input_bits
returns, I am seeing an assert fail on my boostunique_ptr
which wraps my libmodbus class.Expected behaviour
modbus_close
is called?