fix: shorten handoff ownership ack wait

This commit is contained in:
Ogulcan Celik
2026-06-02 23:38:01 +03:00
parent 86b5fe01e2
commit 9ddb03ff34
2 changed files with 3 additions and 7 deletions
-6
View File
@@ -1,6 +0,0 @@
[test-groups]
live-handoff = { max-threads = 1 }
[[profile.default.overrides]]
filter = 'binary(live_handoff)'
test-group = 'live-handoff'
+3 -1
View File
@@ -23,6 +23,8 @@ const HANDOFF_VERSION: u32 = 1;
#[cfg(unix)]
const READY_TIMEOUT: Duration = Duration::from_secs(30);
#[cfg(unix)]
const OWNED_ACK_TIMEOUT: Duration = Duration::from_millis(500);
#[cfg(unix)]
pub(crate) const MAX_FDS_PER_HANDOFF: usize = 64;
#[cfg(unix)]
pub(crate) const MAX_REPLAY_BYTES_PER_PANE: usize = 8 * 1024;
@@ -198,7 +200,7 @@ pub(crate) fn report_committed(stream: &mut UnixStream) -> io::Result<()> {
#[cfg(unix)]
pub(crate) fn wait_owned_ack(stream: &mut UnixStream) {
if let Err(err) = stream.set_read_timeout(Some(READY_TIMEOUT)) {
if let Err(err) = stream.set_read_timeout(Some(OWNED_ACK_TIMEOUT)) {
warn!(err = %err, "failed to set handoff ownership ack timeout");
return;
}