summaryrefslogtreecommitdiff
path: root/test/scripts/4069-pipe-conn-openssl-tfo/4069
blob: 41ec3a5aef8d51c9342d1bb6703473e8930c8597 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# early-pipe, starttls, tfo
#
# NOTE: ensure that TFO is fully enabled in the kernel.
# For linux: sysctl net.ipv4.tcp_fastopen=3
# 
# Network delay so we can see tfo efects
# Clear any previously-obtained tfo cookie:
sudo perl
system ("tc qdisc add dev lo root netem delay 50ms");
system ("[ -e /proc/sys/net/ipv4/tcp_fastopen_blackhole_timeout_sec ] && echo 0 > /proc/sys/net/ipv4/tcp_fastopen_blackhole_timeout_sec");
system ("ip tcp_metrics delete 127.0.0.1");
****
#
#
# Early-pipe not attempted without a cache entry
exim -bd -DSERVER=server -oX PORT_D
****
#
exim a@test.ex
Subject test 1

****
exim -DCONNECTCOND=127.0.0.1 -q
****
exim -DNOTDAEMON -DSERVER=server -q
****
#
#
#
# Go for it.  This one should do early-pipelinng.
exim b@test.ex
Subject test 2

****
exim -DCONNECTCOND=127.0.0.1 -q
****
exim -DNOTDAEMON -DSERVER=server -q
****
#
#
killdaemon
#
#
# And again with CHUNKING
#
exim -bd -DSERVER=server -DOPT=* -oX PORT_D
****
#
# First try has wrong cached info for chunking.  Get it refreshed.
exim wrongcache@test.ex
Subject test 4

****
exim -DCONNECTCOND=127.0.0.1 -q
****
exim -DNOTDAEMON -DSERVER=server -q
****
#
# Go for it
exim chunking@test.ex
Subject test 5

****
exim -DCONNECTCOND=127.0.0.1 -q
****
exim -DNOTDAEMON -DSERVER=server -q
****
#
killdaemon
#
sudo perl
system ("tc qdisc delete dev lo root");
****
no_msglog_check