47b77af0ee43107fd627156c69edeee504d40377
[exim.git] / test / scripts / 1990-TCP-Fast-Open / 1990
1 # TCP Fast Open
2 #
3 # Linux:
4 # Both server and client-side TFO support must be enabled in the
5 # kernel, 'sudo sh -c "echo 3 > /proc/sys/net/ipv4/tcp_fastopen"'.
6 #
7 # A packet capture on the loopback interface will show the TFO
8 # option on the SYN, but the fast-output SMTP banner will not
9 # be seen unless you also deliberately emulate a long path:
10 # 'sudo tc qdisc add dev lo root netem delay 100ms'
11 #
12 # First time runs will see a TFO request option only; subsequent
13 # ones should see the TFO cookie and fast-output SMTP banner
14 # (currently on a separate packet after the server SYN,ACK but before
15 # the client ACK).
16 #
17 # The log <= line should have a "TFO" element.
18 #
19 # If the client-side is disabled in the kernel, Exim logs
20 # will become noisy.
21 #
22 #
23 # FreeBSD: it looks like you have to compile a custom kernel, with
24 # 'options TCP_RFC7413' in the config.  Also set
25 # 'net.inet.tcp.fastopen.enabled=1' in /etc/sysctl.conf
26 # Untested.
27 #
28 exim -DSERVER=server -bd -oX PORT_D
29 ****
30 exim a@test.ex
31 Testing
32 ****
33 sleep 3
34 exim b@test.ex
35 Testing
36 ****
37 sleep 3
38 killdaemon
39 no_msglog_check