启动Tornado,等待一段时间后,出现了这个警告。我不知道这个错误是关于什么的。如何修复这个警告?
WARNING:root:Read error on 12: [Errno 104] Connection reset by peer
WARNING:root:error on read
Traceback (most recent call last):
File "/usr/local/lib/python3.2/site-packages/tornado-2.4-py3.2.egg/tornado/iostream.py", line 355, in _handle_read
if self._read_to_buffer() == 0:
File "/usr/local/lib/python3.2/site-packages/tornado-2.4-py3.2.egg/tornado/iostream.py", line 422, in _read_to_buffer
chunk = self._read_from_socket()
File "/usr/local/lib/python3.2/site-packages/tornado-2.4-py3.2.egg/tornado/iostream.py", line 403, in _read_from_socket
chunk = self.socket.recv(self.read_chunk_size)
socket.error: [Errno 104] Connection reset by peer
104
(也称为ECONNRESET
)的含义,请参见例如这个旧答案。 - Some programmer dude