]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
pop3: use SSL_shutdown(3ssl) if appropriate
authorEric Wong <e@80x24.org>
Tue, 31 Oct 2023 20:42:54 +0000 (20:42 +0000)
committerEric Wong <e@80x24.org>
Wed, 1 Nov 2023 07:08:11 +0000 (07:08 +0000)
This allows us support SSL session caching + reuse in the future.

lib/PublicInbox/POP3.pm

index 6d24b17c6c00aec1e581e533cc6d1fdfab618229..067720696e4c2b0421b3d22930a4988dfcf8bcbe 100644 (file)
@@ -370,7 +370,7 @@ UPDATE users SET last_seen = ? WHERE user_id = ?
                $self->{pop3d}->unlock_mailbox($self);
        }
        $self->write(\"+OK public-inbox POP3 server signing off\r\n");
-       $self->close;
+       $self->shutdn;
        undef;
 }