-# TLS server: timeout after accepting STARTTLS
+# TLS server: timeout or close after accepting STARTTLS
gnutls
exim -DSERVER=server -bd -oX PORT_D
****
client-gnutls 127.0.0.1 PORT_D
??? 220
-ehlo rhu.barb
+ehlo timeout.rhu.barb
+??? 250-
??? 250-
??? 250-
??? 250-
+++ 2
??? 421
****
+client-gnutls 127.0.0.1 PORT_D
+??? 220
+ehlo close.rhu.barb
+??? 250-
+??? 250-
+??? 250-
+??? 250-
+??? 250-
+??? 250
+starttls_wait
+??? 220
+****
+millisleep 500
killdaemon