Skip to content

Make inter-packet delay configurable via --delay-ms#8

Merged
gistrec merged 1 commit intomasterfrom
configurable-packet-delay
May 2, 2026
Merged

Make inter-packet delay configurable via --delay-ms#8
gistrec merged 1 commit intomasterfrom
configurable-packet-delay

Conversation

@gistrec
Copy link
Copy Markdown
Owner

@gistrec gistrec commented May 2, 2026

The hardcoded 20ms pause between successive TRANSFER and RESEND packets
exists to avoid overrunning UDP receive buffers on real LANs, but on
loopback it dominates the runtime — the e2e test of a 2 MiB file took
~28s purely from 1400 × 20ms.

Expose it as --delay-ms (default 20ms preserves the LAN behaviour) and
pass --delay-ms 0 in tests/e2e.sh. Full e2e run drops from ~30s to ~4s.

@gistrec gistrec merged commit 0e3970d into master May 2, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant