SHA256
1
0
forked from pool/python
python/python-2.6.2-ssl_handshake_timeout.patch
OBS User autobuild 9c3fa22758 Accepting request 19972 from devel:languages:python:Factory
Copy from devel:languages:python:Factory/python based on submit request 19972 from user matejcik

OBS-URL: https://build.opensuse.org/request/show/19972
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python?expand=0&rev=37
2009-09-04 22:37:10 +00:00

17 lines
589 B
Diff

--- Lib/ssl.py
+++ Lib/ssl.py
@@ -112,12 +112,7 @@
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