File python-2.6.2-ssl_handshake_timeout.patch of Package python

Index: Lib/ssl.py
===================================================================
--- Lib/ssl.py.orig
+++ Lib/ssl.py
@@ -112,12 +112,7 @@ class SSLSocket (socket):
                                         keyfile, certfile,
                                         cert_reqs, ssl_version, ca_certs)
             if do_handshake_on_connect:
-                timeout = self.gettimeout()
-                try:
-                    self.settimeout(None)
-                    self.do_handshake()
-                finally:
-                    self.settimeout(timeout)
+                self.do_handshake()
         self.keyfile = keyfile
         self.certfile = certfile
         self.cert_reqs = cert_reqs
openSUSE Build Service is sponsored by