From: Alexandre Detiste <tchet@debian.org>
Subject: update strings regexp as seen on upstream HEAD
Forwarded: https://github.com/urllib3/urllib3/pull/3271

--- a/test/with_dummyserver/test_socketlevel.py
+++ b/test/with_dummyserver/test_socketlevel.py
@@ -1311,7 +1311,7 @@
         self._start_server(socket_handler)
         with HTTPSConnectionPool(self.host, self.port, ca_certs=DEFAULT_CA) as pool:
             with pytest.raises(
-                SSLError, match=r"(wrong version number|record overflow)"
+                SSLError, match=r"(wrong version number|record overflow|record layer failure)"
             ):
                 pool.request("GET", "/", retries=False)
 
--- a/src/urllib3/connection.py
+++ b/src/urllib3/connection.py
@@ -865,6 +865,7 @@
     is_likely_http_proxy = (
         "wrong version number" in error_normalized
         or "unknown protocol" in error_normalized
+        or "record layer failure" in error_normalized
     )
     http_proxy_warning = (
         ". Your proxy appears to only use HTTP and not HTTPS, "
