From ae9d18bce985de6ff806c167059ffdd554278882 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Mon, 8 Jun 2015 21:48:50 +0100 Subject: Truncate delay when peer closes connection. Bug 348 This is now possible on Linux, at least. --- test/scripts/0000-Basic/0552 | 1 + test/scripts/0000-Basic/0609 | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 test/scripts/0000-Basic/0609 (limited to 'test/scripts') diff --git a/test/scripts/0000-Basic/0552 b/test/scripts/0000-Basic/0552 index 1958dbe64..a0621ca32 100644 --- a/test/scripts/0000-Basic/0552 +++ b/test/scripts/0000-Basic/0552 @@ -11,6 +11,7 @@ exim -DSERVER=server -DDDF=control=no_delay_flush -bd -oX PORT_D exim -qf **** killdaemon +sleep 1 # This daemon should flush before delaying exim -DSERVER=server -bd -oX PORT_D **** diff --git a/test/scripts/0000-Basic/0609 b/test/scripts/0000-Basic/0609 new file mode 100644 index 000000000..84ab89ded --- /dev/null +++ b/test/scripts/0000-Basic/0609 @@ -0,0 +1,29 @@ +# Long ACL delay, truncated +munge debug_pid +need_ipv4 +# +# We want the debug note of a truncated delay +exim -d-all+acl -DSERVER=server -odq -bd -oX PORT_D +**** +# +# Server delays 4s before accepting RCPT +client 127.0.0.1 PORT_D +??? 220 +mail from: +??? 250 +rcpt to: +??? 250 +quit +??? 221 +**** +# +# Server delays 4s before accepting RCPT +# but client closes connection +client 127.0.0.1 PORT_D +??? 220 +mail from: +??? 250 +rcpt to: +**** +killdaemon +no_msglog_check -- cgit v1.2.3