Skip to content

Instantly share code, notes, and snippets.

@razamatan
Created February 8, 2011 22:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save razamatan/817447 to your computer and use it in GitHub Desktop.
Save razamatan/817447 to your computer and use it in GitHub Desktop.
fix for ZSI 2.0 and python 2.6's ssl handling
# 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