A strange questions, about socket.py

2012-12-27 Thread Chaojie He
Code: import urllib2 , socks , socket socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5,'127.0.0.1',1080,True,None,None) socket.socket = socks.socksocket result = urllib2.urlopen("http://www.youtube.com",timeout=5) If in the operation process of the server disconnected, the script will enter circulat

Re: A strange questions, about socket.py

2012-12-27 Thread Chaojie He
I made a mistake,Sorry -- http://mail.python.org/mailman/listinfo/python-list