diff options
author | Eric Wong <e@80x24.org> | 2020-10-30 02:13:58 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-10-30 16:38:21 +0000 |
commit | c51c22c349529d9c377160abcc7961a6ca7b7d5c (patch) | |
tree | 99df405068988cdbd292bc9ac2dfdd6ec9737b7c /lib/PublicInbox/IMAP.pm | |
parent | 632d2c84efe004710bdf58048e348383a1644fea (diff) | |
download | public-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/IMAP.pm')
-rw-r--r-- | lib/PublicInbox/IMAP.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/IMAP.pm b/lib/PublicInbox/IMAP.pm index 37001da4..9599f494 100644 --- a/lib/PublicInbox/IMAP.pm +++ b/lib/PublicInbox/IMAP.pm @@ -115,7 +115,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); |