1 # Early-pipelining, with TFO
3 # NOTE: ensure that TFO is fully enabled in the kernel.
4 # For linux: sysctl net.ipv4.tcp_fastopen=3
7 # Packet delays so we can see TFO operational in packet captures
8 # Wipe any stored TFO cookie, to start from known state.
9 # Disable TFO blackhole-detection as we seem to be running afoul of that
11 system ("tc qdisc add dev lo root netem delay 50ms");
12 system ("ip tcp_metrics delete HOSTIPV4");
13 system ("[ -e /proc/sys/net/ipv4/tcp_fastopen_blackhole_timeout_sec ] && echo 0 > /proc/sys/net/ipv4/tcp_fastopen_blackhole_timeout_sec");
17 exim -bd -DSERVER=server -oX PORT_D
20 # No early-pipe cache yet. Run one through to prime it;
21 # this should not use early-pipe despite both the client & server being enabled.
22 # Should also prime the TFO cookie cache.
30 exim -DNOTDAEMON -DSERVER=server -q
35 # Having primed the cache, this one should use it.
43 exim -DNOTDAEMON -DSERVER=server -q
49 # Again, with CHUNKING
50 sudo rm DIR/spool/db/misc
51 exim -bd -DSERVER=server -DOPT=* -oX PORT_D
61 exim -DNOTDAEMON -DSERVER=server -q
70 exim -DNOTDAEMON -DSERVER=server -q
77 system ("tc qdisc delete dev lo root");
78 system ("[ -e /proc/sys/net/ipv4/tcp_fastopen_blackhole_timeout_sec ] && echo 3600 > /proc/sys/net/ipv4/tcp_fastopen_blackhole_timeout_sec");