Postpone read/write handlers using timerfd in the debug use_sync_send_recv mode

This commit is contained in:
Vitaliy Filippov
2025-06-05 02:22:01 +03:00
parent 67071158bd
commit f0a025428e
2 changed files with 7 additions and 4 deletions
+2 -1
View File
@@ -239,7 +239,8 @@ bool osd_messenger_t::try_send(osd_client_t *cl)
{
result = -errno;
}
handle_send(result, false, false, cl);
// like set_immediate
tfd->set_timer_us(0, false, [this, result, cl](int){ handle_send(result, false, false, cl); });
}
return true;
}