Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / Python / Connection delays from Maya 2011 on Windows 7?
  RSS 2.0 ATOM  

Connection delays from Maya 2011 on Windows 7?
Rate this thread
 
61685
 
Permlink of this thread  
avatar
  • behrk
  • Posted: 04 November 2011 07:53 AM
  • Total Posts: 1
  • Joined: 04 November 2011 06:58 AM

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(familysocktypeproto)
sock.setsockopt(socket.IPPROTO_TCPsocket.TCP_NODELAY1)
sock.connect((host443))                                                                                                              
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(sockserver_sidekeyfilecertfilecert_reqsssl_versionca_certs)                                         
_sslobj.do_handshake()

Thanks,
behrk



Replies: 0