Tornado Warning [Errno 104] Connection reset by peer

start a tornado, and wait a while, this warning comes out. I do not know what kind of mistake this is. How to fix a warning?

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 
+4
source share
1 answer

Two aspects are possible:

one: Use the old version of the tornado, hotfix: https://github.com/facebook/tornado/commit/3258726fea5bcd1b401907653bc953ce63d5aeb2

two: Something is wrong with your client that sends this request, RST without ACK (this is normal, as defined by the RFC)

0
source

Source: https://habr.com/ru/post/1433321/


All Articles