在我们的代码中,我们捕获 IOError 并在重新引发之前记录它。我收到“对等方重置连接”,但日志中没有任何内容。“对等连接重置”是python中IOError的子类吗?
.....
File "/usr/lib/python2.5/httplib.py", line 1047, in readline
s = self._read()
File "/usr/lib/python2.5/httplib.py", line 1003, in _read
buf = self._ssl.read(self._bufsize)
error: (104, 'Connection reset by peer')