diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2015-06-08 21:48:50 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2015-06-08 22:50:21 +0100 |
commit | ae9d18bce985de6ff806c167059ffdd554278882 (patch) | |
tree | dee65199fe465856eec10ea889cc79b483aaf696 /test/scripts | |
parent | 7da3cb7c81fbe0ae154b2b5f89f79dc80264f699 (diff) |
Truncate delay when peer closes connection. Bug 348
This is now possible on Linux, at least.
Diffstat (limited to 'test/scripts')
-rw-r--r-- | test/scripts/0000-Basic/0552 | 1 | ||||
-rw-r--r-- | test/scripts/0000-Basic/0609 | 29 |
2 files changed, 30 insertions, 0 deletions
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:<x@y.test.ex> +??? 250 +rcpt to:<delay4_accept@y.test.ex> +??? 250 +quit +??? 221 +**** +# +# Server delays 4s before accepting RCPT +# but client closes connection +client 127.0.0.1 PORT_D +??? 220 +mail from:<x@y.test.ex> +??? 250 +rcpt to:<delay4_accept@y.test.ex> +**** +killdaemon +no_msglog_check |