Testsuite: workaround TFO blackhole detection
[exim.git] / test / scripts / 4058-pipe-conn-tfo / 4058
CommitLineData
ee8b8090
JH
1# Early-pipelining, with TFO
2#
3#
4# Packet delays so we can see TFO operational in packet captures
ee8b8090 5# Wipe any stored TFO cookie, to start from known state.
38da9088 6# Disable TFO blackhole-detection as we seem to be running afoul of that
ee8b8090 7sudo perl
38da9088 8system ("tc qdisc add dev lo root netem delay 50ms");
ee8b8090 9system ("ip tcp_metrics delete 127.0.0.1");
38da9088 10system ("echo 0 > /proc/sys/net/ipv4/tcp_fastopen_blackhole_timeout_sec");
ee8b8090
JH
11****
12#
13#
14exim -bd -DSERVER=server -oX PORT_D
15****
16#
17# No early-pipe cache yet. Run one through to prime it;
18# this should not use early-pipe despite both the client & server being enabled.
19# Should also prime the TFO cookie cache.
20exim nocache@test.ex
21Subject: tfo test
22
23Testing
24****
25exim -q
26****
27exim -DNOTDAEMON -DSERVER=server -q
28****
29#
30#
31#
32# Having primed the cache, this one should use it.
33exim hascache@test.ex
34Subject: tfo test 2
35
36Testing
37****
38exim -q
39****
40exim -DNOTDAEMON -DSERVER=server -q
41****
42#
43#
44killdaemon
45#
46# Again, with CHUNKING
47sudo rm DIR/spool/db/misc
48exim -bd -DSERVER=server -DOPT=* -oX PORT_D
49****
50#
51exim nocache@test.ex
52Subject: tfo test 3
53
54Testing
55****
56exim -q
57****
58exim -DNOTDAEMON -DSERVER=server -q
59****
60exim chunking@test.ex
61Subject: tfo test 4
62
63Testing
64****
65exim -q
66****
67exim -DNOTDAEMON -DSERVER=server -q
68****
69#
70#
71killdaemon
72#
73sudo perl
74system ("tc qdisc delete dev lo root");
38da9088 75system ("echo 3600 > /proc/sys/net/ipv4/tcp_fastopen_blackhole_timeout_sec");
ee8b8090
JH
76****
77#
78no_msglog_check