Closed Keksoj closed 8 months ago
Because of the way the Channel::read_message_blocking_timeout was written, the reading on the socket is blocking, and the provided timeout is ignored.
Channel::read_message_blocking_timeout
This PR introduces a Channel::set_read_timeout method and uses it to perform a read every 10 ms and check the provided timeout inbetween each try.
Channel::set_read_timeout
Because of the way the
Channel::read_message_blocking_timeout
was written, the reading on the socket is blocking, and the provided timeout is ignored.This PR introduces a
Channel::set_read_timeout
method and uses it to perform a read every 10 ms and check the provided timeout inbetween each try.