在尝试让我的python应用程序在连接中断的情况下更健壮时,我发现调用urllib2制作的http-stream的read函数可能会永远阻塞脚本。stream = urllib2.urlopen('http://www.google.de/images/nav_logo4.png')
while stream.read
\AppData\Local\Continuum\anaconda3\lib\site-packages\pip\_vendor\urllib3\response.py", line 442, in read_fp.read(amt)
File "C:\Users\username\AppData\Local\Continuum\anaconda3\lib\http\client.py", line 447:\Users\username\AppData\Local\Continuum\anaconda3\lib\ssl.py&