about summary refs log tree commit homepage
path: root/lib/PublicInbox/NNTP.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-10-30 02:13:58 +0000
committerEric Wong <e@80x24.org>2020-10-30 16:38:21 +0000
commitc51c22c349529d9c377160abcc7961a6ca7b7d5c (patch)
tree99df405068988cdbd292bc9ac2dfdd6ec9737b7c /lib/PublicInbox/NNTP.pm
parent632d2c84efe004710bdf58048e348383a1644fea (diff)
downloadpublic-inbox-c51c22c349529d9c377160abcc7961a6ca7b7d5c.tar.gz
Apparently they happen (triggered by my -imapd instance), so
bail out by closing the underlying socket rather than stopping
the event loop and daemon process.
Diffstat (limited to 'lib/PublicInbox/NNTP.pm')
-rw-r--r--lib/PublicInbox/NNTP.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/NNTP.pm b/lib/PublicInbox/NNTP.pm
index 88fe2bb0..102ef42c 100644
--- a/lib/PublicInbox/NNTP.pm
+++ b/lib/PublicInbox/NNTP.pm
@@ -53,7 +53,7 @@ sub new ($$$) {
         my $wbuf;
         if ($sock->can('accept_SSL') && !$sock->accept_SSL) {
                 return CORE::close($sock) if $! != EAGAIN;
-                $ev = PublicInbox::TLS::epollbit();
+                $ev = PublicInbox::TLS::epollbit() or return CORE::close($sock);
                 $wbuf = [ \&PublicInbox::DS::accept_tls_step, \&greet ];
         }
         $self->SUPER::new($sock, $ev | EPOLLONESHOT);