summaryrefslogtreecommitdiff
path: root/test/scripts/4069-pipe-conn-openssl-tfo
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2018-12-31 13:58:26 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2018-12-31 14:11:41 +0000
commitcb6bd80f1680a22c96bfff84e8671fa01417611b (patch)
tree9facf3f43562da3017da2cd7e7379d992b71c01a /test/scripts/4069-pipe-conn-openssl-tfo
parent5ffbf3a3b9bbc8ebc7a0b29bf753febe283f5fa9 (diff)
PIPE_CONNECT: fix feature-cache refresh
Diffstat (limited to 'test/scripts/4069-pipe-conn-openssl-tfo')
-rw-r--r--test/scripts/4069-pipe-conn-openssl-tfo/406970
-rw-r--r--test/scripts/4069-pipe-conn-openssl-tfo/REQUIRES3
2 files changed, 73 insertions, 0 deletions
diff --git a/test/scripts/4069-pipe-conn-openssl-tfo/4069 b/test/scripts/4069-pipe-conn-openssl-tfo/4069
new file mode 100644
index 000000000..2339b0c12
--- /dev/null
+++ b/test/scripts/4069-pipe-conn-openssl-tfo/4069
@@ -0,0 +1,70 @@
+# early-pipe, starttls, tfo
+#
+# 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 ("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
diff --git a/test/scripts/4069-pipe-conn-openssl-tfo/REQUIRES b/test/scripts/4069-pipe-conn-openssl-tfo/REQUIRES
new file mode 100644
index 000000000..be856b0d6
--- /dev/null
+++ b/test/scripts/4069-pipe-conn-openssl-tfo/REQUIRES
@@ -0,0 +1,3 @@
+support Experimental_PIPE_CONNECT
+support OpenSSL
+support TCP_Fast_Open