From: Moshe Zadka Date: Sat, 31 Mar 2001 09:32:01 +0000 (+0000) Subject: #123924: Windows - using OpenSSL, problem with socket in httplib.py. X-Git-Tag: v2.0.1c1~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4e74812fe970904954c62947b550a91fa24bd11;p=thirdparty%2FPython%2Fcpython.git #123924: Windows - using OpenSSL, problem with socket in httplib.py. --- diff --git a/Lib/httplib.py b/Lib/httplib.py index 268835930895..2b32a1bb57ef 100644 --- a/Lib/httplib.py +++ b/Lib/httplib.py @@ -613,7 +613,10 @@ class HTTPSConnection(HTTPConnection): sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect((self.host, self.port)) - ssl = socket.ssl(sock, self.key_file, self.cert_file) + realsock = sock + if hasattr(sock, "_sock"): + realsock = sock._sock + ssl = socket.ssl(realsock, self.key_file, self.cert_file) self.sock = FakeSocket(sock, ssl) diff --git a/Misc/NEWS b/Misc/NEWS index 6b4b13432cda..8eda0210c06d 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -92,6 +92,8 @@ http://sourceforge.net/tracker/index.php?func=detail&aid=&group_id=5470&atid - #126863 - getopt long option handling fixed +- #123924 - httplib.py - Windows - using OpenSSL, problem with socket + What's New in Python 2.0? =========================