fix: avoid 10s client dally delay by default

This commit is contained in:
2025-12-21 13:17:50 +01:00
parent a6dade0956
commit 3f10f68851
2 changed files with 5 additions and 2 deletions

View File

@@ -32,7 +32,10 @@ impl Default for ClientConfig {
timeout,
retries: 5,
dally_timeout: timeout,
dally_retries: 2,
// RFC 1350, Section 6: The final ACK sender *may* terminate immediately, but
// "dallying is encouraged". For CLI UX, default to no dallying and allow
// opt-in via flags.
dally_retries: 0,
}
}
}

View File

@@ -138,7 +138,7 @@ OPTIONS:
--timeout-ms <MILLIS> Packet timeout (default: 5000)
--retries <N> Retransmit attempts (default: 5)
--dally-timeout-ms <MILLIS> Wait time for duplicate final DATA (default: timeout)
--dally-retries <N> Dally attempts (default: 2)
--dally-retries <N> Dally attempts (default: 0)
--help, -h Show this help
"
);