rdobuilder 591f3e
From 6010f082ee48859a0965c0289cff7434a768d855 Mon Sep 17 00:00:00 2001
rdobuilder 591f3e
From: Alfredo Moralejo <amoralej@redhat.com>
rdobuilder 591f3e
Date: Wed, 22 Nov 2023 18:08:11 +0100
rdobuilder 591f3e
Subject: [PATCH] Fix GreenSSLSocket for python3-3.6.8-56.el8
rdobuilder 591f3e
rdobuilder 591f3e
In CentOS Stream 8, python3-3.6.8-56.el8 has backported a cve fix which
rdobuilder 591f3e
changes the behavior of SSLSocket to make it similar to python3 >= 3.7
rdobuilder 591f3e
[1].  This patch is delaring _timeout while creating the GreenSSLSocket.
rdobuilder 591f3e
rdobuilder 591f3e
[1] https://gitlab.com/redhat/centos-stream/rpms/python3/-/commit/b1da2b26d2c7066b271a3bdd9d508e97bc38da81
rdobuilder 591f3e
---
rdobuilder 591f3e
 eventlet/green/ssl.py | 2 ++
rdobuilder 591f3e
 1 file changed, 2 insertions(+)
rdobuilder 591f3e
rdobuilder 591f3e
diff --git a/eventlet/green/ssl.py b/eventlet/green/ssl.py
rdobuilder 591f3e
index c49e872..9c20d59 100644
rdobuilder 591f3e
--- a/eventlet/green/ssl.py
rdobuilder 591f3e
+++ b/eventlet/green/ssl.py
rdobuilder 591f3e
@@ -110,6 +110,8 @@ class GreenSSLSocket(_original_sslsocket):
rdobuilder 591f3e
             self._timeout = sock.gettimeout()
rdobuilder 591f3e
 
rdobuilder 591f3e
         if _is_under_py_3_7:
rdobuilder 591f3e
+            # This is required for CentOS Stream 8 python 3.6 >= python3-3.6.8-56.el8
rdobuilder 591f3e
+            self._timeout = sock.gettimeout()
rdobuilder 591f3e
             # nonblocking socket handshaking on connect got disabled so let's pretend it's disabled
rdobuilder 591f3e
             # even when it's on
rdobuilder 591f3e
             super(GreenSSLSocket, self).__init__(
rdobuilder 591f3e
-- 
rdobuilder 591f3e
2.38.1
rdobuilder 591f3e