|
Hello
We are experiencing 25-60s delays when connecting to external websites from within maya on windows 7. We do not experience the delays using mayapy on windows 7 or from Maya 2011 on Os X.
We are using the cacerts.txt file distributed with httplib2.
To replicate run the following in the Maya python:
import sys
import socket
import _ssl
import _socket
host = 'www.philly.com' ssl_version=_ssl.PROTOCOL_SSLv23
family = 2
socktype = 1
proto = 0
sock = _socket.socket(family, socktype, proto) sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) sock.connect((host, 443)) reps = 1 if sys.platform == 'win32':
ca_certs = r'windows\path\to\httplib2\cacerts.txt' else:
ca_certs = '/unix/path/to/httplib2/cacerts.txt' keyfile = None
certfile = None
cert_reqs = 2
server_side = False
ca_certs = ca_certs
_sslobj = _ssl.sslwrap(sock, server_side, keyfile, certfile, cert_reqs, ssl_version, ca_certs) _sslobj.do_handshake()
Thanks,
behrk
|
|
|