This commit is contained in:
2024-12-26 09:00:09 -06:00
parent ee68904585
commit 4260aa9d9b
2 changed files with 4 additions and 0 deletions

View File

@ -275,6 +275,8 @@ auto direct_open_file::read(std::size_t read_size, std::uint64_t read_offset,
for (std::size_t chunk = begin_chunk;
not stop_requested_ && (res == api_error::success) && (read_size > 0U);
++chunk) {
reset_timeout();
if (chunk > ring_pos_) {
forward(chunk - ring_pos_);
} else if (chunk < ring_pos_) {

View File

@ -338,6 +338,8 @@ auto ring_buffer_open_file::read(std::size_t read_size,
for (std::size_t chunk = begin_chunk;
not stop_requested_ && (res == api_error::success) && (read_size > 0U);
++chunk) {
reset_timeout();
if (chunk > ring_pos_) {
forward(chunk - ring_pos_);
} else if (chunk < ring_pos_) {