From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <e@80x24.org>
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net
X-Spam-Level: 
X-Spam-ASN:  
X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00,
	DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,
	T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=ham autolearn_force=no
	version=3.4.6
Received: from localhost (dcvr.yhbt.net [127.0.0.1])
	by dcvr.yhbt.net (Postfix) with ESMTP id 7301E1F518
	for <meta@public-inbox.org>; Tue, 31 Oct 2023 20:42:57 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org;
	s=selector1; t=1698784977;
	bh=VOGEvI32m+rNpk9PWgWTHhPtNIY8m5Gmfv5am+gkvh0=;
	h=From:To:Subject:Date:In-Reply-To:References:From;
	b=5Sx9sz5i4+Ru+YW5qjSHH8K1J6zT89obhRDPJ4Bmfq/osxjyEUbStQL9IYyHN4mQv
	 6c3rQccE8hrThDNc6sYXwq90xBwKb0SaiEyb9o/FQk+WKZWhVh1JVL3WnG2kHmZk0Y
	 SerIOne5tVxVTLChwnKqtTt7bu/g7fZHg4RtzTbw=
From: Eric Wong <e@80x24.org>
To: meta@public-inbox.org
Subject: [PATCH 5/6] pop3: use SSL_shutdown(3ssl) if appropriate
Date: Tue, 31 Oct 2023 20:42:54 +0000
Message-Id: <20231031204255.1837649-6-e@80x24.org>
In-Reply-To: <20231031204255.1837649-1-e@80x24.org>
References: <20231031204255.1837649-1-e@80x24.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
List-Id: <meta.public-inbox.org>

This allows us support SSL session caching + reuse in the future.
---
 lib/PublicInbox/POP3.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/PublicInbox/POP3.pm b/lib/PublicInbox/POP3.pm
index 6d24b17c..06772069 100644
--- a/lib/PublicInbox/POP3.pm
+++ b/lib/PublicInbox/POP3.pm
@@ -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;
 }