From ee8b809061baea861fc87c41bcb72a62d76b0047 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Sat, 3 Nov 2018 23:13:34 +0000 Subject: Squashed commit of PIPE_CONNECT --- test/scripts/4058-pipe-conn-tfo/4058 | 78 ++++++++++++++++++++++++++++++++ test/scripts/4058-pipe-conn-tfo/REQUIRES | 2 + 2 files changed, 80 insertions(+) create mode 100644 test/scripts/4058-pipe-conn-tfo/4058 create mode 100644 test/scripts/4058-pipe-conn-tfo/REQUIRES (limited to 'test/scripts/4058-pipe-conn-tfo') diff --git a/test/scripts/4058-pipe-conn-tfo/4058 b/test/scripts/4058-pipe-conn-tfo/4058 new file mode 100644 index 000000000..3a388a2d9 --- /dev/null +++ b/test/scripts/4058-pipe-conn-tfo/4058 @@ -0,0 +1,78 @@ +# Early-pipelining, with TFO +# +# +# Packet delays so we can see TFO operational in packet captures +sudo perl +system ("tc qdisc add dev lo root netem delay 50ms"); +**** +# +# Wipe any stored TFO cookie, to start from known state. +sudo perl +system ("ip tcp_metrics delete 127.0.0.1"); +**** +# +# +exim -bd -DSERVER=server -oX PORT_D +**** +# +# No early-pipe cache yet. Run one through to prime it; +# this should not use early-pipe despite both the client & server being enabled. +# Should also prime the TFO cookie cache. +exim nocache@test.ex +Subject: tfo test + +Testing +**** +exim -q +**** +exim -DNOTDAEMON -DSERVER=server -q +**** +# +# +# +# Having primed the cache, this one should use it. +exim hascache@test.ex +Subject: tfo test 2 + +Testing +**** +exim -q +**** +exim -DNOTDAEMON -DSERVER=server -q +**** +# +# +killdaemon +# +# Again, with CHUNKING +sudo rm DIR/spool/db/misc +exim -bd -DSERVER=server -DOPT=* -oX PORT_D +**** +# +exim nocache@test.ex +Subject: tfo test 3 + +Testing +**** +exim -q +**** +exim -DNOTDAEMON -DSERVER=server -q +**** +exim chunking@test.ex +Subject: tfo test 4 + +Testing +**** +exim -q +**** +exim -DNOTDAEMON -DSERVER=server -q +**** +# +# +killdaemon +# +sudo perl +system ("tc qdisc delete dev lo root"); +**** +# +no_msglog_check diff --git a/test/scripts/4058-pipe-conn-tfo/REQUIRES b/test/scripts/4058-pipe-conn-tfo/REQUIRES new file mode 100644 index 000000000..c18c49b2e --- /dev/null +++ b/test/scripts/4058-pipe-conn-tfo/REQUIRES @@ -0,0 +1,2 @@ +support Experimental_PIPE_CONNECT +support TCP_Fast_Open -- cgit v1.2.3