summaryrefslogtreecommitdiff
path: root/src/pardes.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-29 16:55:47 -0300
committerGabriel Schneider <[email protected]>2026-10-29 19:54:26 -0300
commitcd560d4e025e46db6aa583f017dd9e503f45659c (patch)
treeb11c87d4fa208d870433df352655387684b521ea /src/pardes.zig
parent32b80ad0393321d44f929e501e5515bbf6e51c12 (diff)
downloadpardes-cd560d4e025e46db6aa583f017dd9e503f45659c.tar.gz
pardes-cd560d4e025e46db6aa583f017dd9e503f45659c.zip
test/delay_relay.py: a link with latency for the replica gates, each chunk 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]>
Diffstat (limited to 'src/pardes.zig')
0 files changed, 0 insertions, 0 deletions