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