summaryrefslogtreecommitdiff
path: root/test/delay_relay.py
Commit message (Collapse)AuthorAge
* test/delay_relay.py: a link with latency for the replica gates, each chunk ↵Gabriel Schneider2026-10-29
held a fixed delay from its arrival each way, in order, with an optional rate cap It accepts on a Unix or TCP socket and connects each client on to another; each direction is a reader that stamps every chunk with its due time (its arrival plus the delay, or, capped, the moment the link has carried the chunks before it plus the delay) and a writer that sends it then, so a stream's throughput is not serialised behind the delay. 15, 40 and 103.5 ms one way are the gates' 30, 80 and 207 ms RTTs (the last the FreeBSD box's). ponytail: the buffer is unbounded, a link of infinite bandwidth-delay product; ssh's own window is what bounds a real one. `--self-check` measures what it adds against an echo and a sink: an RTT 0.26 to 0.56 ms over the two delays (the threads' wake-ups; the low end pinned to two quiet cores), 2.3 to 4.3 GB/s through it at every delay (256 MiB, against 9.9 to 12.4 GB/s direct), and a 20 MB/s cap held to 19.99. Co-Authored-By: Claude Opus 5.5 <[email protected]>