当我使用django 1.2和1.3 dev服务器测试我的应用程序时 在IE 9上。其他所有请求都给了我:
Traceback (most recent call last):
File "/home/dmican/Envs/monetization/lib/python2.6/site-packages/
django/core/servers/basehttp.py", line 281, in run
self.finish_response()
File "/home/dmican/Envs/monetization/lib/python2.6/site-packages/
django/core/servers/basehttp.py", line 321, in finish_response
self.write(data)
File "/home/dmican/Envs/monetization/lib/python2.6/site-packages/
django/core/servers/basehttp.py", line 400, in write
self.send_headers()
File "/home/dmican/Envs/monetization/lib/python2.6/site-packages/
django/core/servers/basehttp.py", line 464, in send_headers
self.send_preamble()
File "/home/dmican/Envs/monetization/lib/python2.6/site-packages/
django/core/servers/basehttp.py", line 379, in send_preamble
self._write('HTTP/%s %s\r\n' % (self.http_version,self.status))
File "/home/dmican/Envs/monetization/lib/python2.6/site-packages/
django/core/servers/basehttp.py", line 508, in _write
self.stdout.write(data)
File "/usr/lib/python2.6/socket.py", line 297, in write
self.flush()
File "/usr/lib/python2.6/socket.py", line 284, in flush
self._sock.sendall(buffer)
错误:[Errno 104]通过对等方重置连接
主要是我在使用IE9进行测试时才会出现此错误
任何解决方案?
提前致谢
答案 0 :(得分:1)
发生这种情况时,请记录错误并在循环中重试调用, 需要多次尝试才能在8-10之后放弃,尝试在reties之间进行一些睡眠,这对我有用。