Created
February 8, 2011 22:43
-
-
Save razamatan/817447 to your computer and use it in GitHub Desktop.
fix for ZSI 2.0 and python 2.6's ssl handling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# in class TimeoutHTTPS: | |
def connect(self): | |
sock = TimeoutSocket(self.timeout) | |
sock.connect((self.host, self.port)) | |
self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment