Commit | Line | Data |
---|---|---|
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 | 7 | sudo perl |
38da9088 | 8 | system ("tc qdisc add dev lo root netem delay 50ms"); |
ee8b8090 | 9 | system ("ip tcp_metrics delete 127.0.0.1"); |
38da9088 | 10 | system ("echo 0 > /proc/sys/net/ipv4/tcp_fastopen_blackhole_timeout_sec"); |
ee8b8090 JH |
11 | **** |
12 | # | |
13 | # | |
14 | exim -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. | |
20 | exim nocache@test.ex | |
21 | Subject: tfo test | |
22 | ||
23 | Testing | |
24 | **** | |
25 | exim -q | |
26 | **** | |
27 | exim -DNOTDAEMON -DSERVER=server -q | |
28 | **** | |
29 | # | |
30 | # | |
31 | # | |
32 | # Having primed the cache, this one should use it. | |
33 | exim hascache@test.ex | |
34 | Subject: tfo test 2 | |
35 | ||
36 | Testing | |
37 | **** | |
38 | exim -q | |
39 | **** | |
40 | exim -DNOTDAEMON -DSERVER=server -q | |
41 | **** | |
42 | # | |
43 | # | |
44 | killdaemon | |
45 | # | |
46 | # Again, with CHUNKING | |
47 | sudo rm DIR/spool/db/misc | |
48 | exim -bd -DSERVER=server -DOPT=* -oX PORT_D | |
49 | **** | |
50 | # | |
51 | exim nocache@test.ex | |
52 | Subject: tfo test 3 | |
53 | ||
54 | Testing | |
55 | **** | |
56 | exim -q | |
57 | **** | |
58 | exim -DNOTDAEMON -DSERVER=server -q | |
59 | **** | |
60 | exim chunking@test.ex | |
61 | Subject: tfo test 4 | |
62 | ||
63 | Testing | |
64 | **** | |
65 | exim -q | |
66 | **** | |
67 | exim -DNOTDAEMON -DSERVER=server -q | |
68 | **** | |
69 | # | |
70 | # | |
71 | killdaemon | |
72 | # | |
73 | sudo perl | |
74 | system ("tc qdisc delete dev lo root"); | |
38da9088 | 75 | system ("echo 3600 > /proc/sys/net/ipv4/tcp_fastopen_blackhole_timeout_sec"); |
ee8b8090 JH |
76 | **** |
77 | # | |
78 | no_msglog_check |