about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-06-24 02:52:42 +0000
committerEric Wong <e@80x24.org>2019-06-24 05:26:27 +0000
commit595854982a59f369ab605794f05c046c86253468 (patch)
treea09a07b6178fc16a80af8591f352ff9bd72bdce0 /t
parentb3e4b3b3c67b9df7868518978e721417b0aa7c9c (diff)
downloadpublic-inbox-595854982a59f369ab605794f05c046c86253468.tar.gz
This is in accordance with TLS standards and will be needed
to support session caching/reuse in the future.  However, we
don't issue shutdown(2) since we know not to inadvertantly
share our sockets with other processes.
Diffstat (limited to 't')
-rw-r--r--t/nntpd-tls.t2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/nntpd-tls.t b/t/nntpd-tls.t
index 4727ee5b..00b03b66 100644
--- a/t/nntpd-tls.t
+++ b/t/nntpd-tls.t
@@ -118,6 +118,8 @@ for my $args (
         my $c = Net::NNTP->new($nntps_addr, %o);
         my $list = $c->list;
         is_deeply($list, $expect, 'NNTPS LIST works');
+        is($c->command('QUIT')->response(), Net::Cmd::CMD_OK(), 'QUIT works');
+        is(0, sysread($c, my $buf, 1), 'got EOF after QUIT');
 
         # STARTTLS
         delete $o{SSL};