From dfc98a70e3e84887783095357f5fc65e19f71020 Mon Sep 17 00:00:00 2001
From: "Tobias S. Josefowitz" <tobij@tobij.de>
Date: Sat, 1 Feb 2020 11:56:29 +0100
Subject: [PATCH] SSL: Do not purge sessions for crudely closed connections

Not negotiating the close at the TLS level is in spec, and should not
lead to sessions being purged.
---
 lib/modules/SSL.pmod/File.pike | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lib/modules/SSL.pmod/File.pike b/lib/modules/SSL.pmod/File.pike
index a0f8fc7855..45cc684d6e 100644
--- a/lib/modules/SSL.pmod/File.pike
+++ b/lib/modules/SSL.pmod/File.pike
@@ -2264,7 +2264,6 @@ protected int ssl_close_callback (int ignored)
 	(conn->state | CONNECTION_peer_closed);
       SSL3_DEBUG_MSG ("ssl_close_callback: Abrupt close - "
 		      "simulating System.EPIPE\n");
-      cleanup_on_error();
       close_state = ABRUPT_CLOSE;
       if (!close_errno) {
 	close_errno = System.EPIPE;
-- 
GitLab