1 # early-pipe, starttls, tfo
3 # NOTE: ensure that TFO is fully enabled in the kernel.
4 # For linux: sysctl net.ipv4.tcp_fastopen=3
6 # Network delay so we can see tfo efects
7 # Clear any previously-obtained tfo cookie:
9 system ("tc qdisc add dev lo root netem delay 50ms");
10 system ("[ -e /proc/sys/net/ipv4/tcp_fastopen_blackhole_timeout_sec ] && echo 0 > /proc/sys/net/ipv4/tcp_fastopen_blackhole_timeout_sec");
11 system ("ip tcp_metrics delete 127.0.0.1");
15 # Early-pipe not attempted without a cache entry
16 exim -bd -DSERVER=server -oX PORT_D
23 exim -DCONNECTCOND=127.0.0.1 -q
25 exim -DNOTDAEMON -DSERVER=server -q
30 # Go for it. This one should do early-pipelinng.
35 exim -DCONNECTCOND=127.0.0.1 -q
37 exim -DNOTDAEMON -DSERVER=server -q
44 # And again with CHUNKING
46 exim -bd -DSERVER=server -DOPT=* -oX PORT_D
49 # First try has wrong cached info for chunking. Get it refreshed.
50 exim wrongcache@test.ex
54 exim -DCONNECTCOND=127.0.0.1 -q
56 exim -DNOTDAEMON -DSERVER=server -q
64 exim -DCONNECTCOND=127.0.0.1 -q
66 exim -DNOTDAEMON -DSERVER=server -q
72 system ("tc qdisc delete dev lo root");