TargetProcess / signalr-client-py

python client proxy for signalr
Other
63 stars 58 forks source link

Connection reset by peer #43

Open muthusabarinathan opened 6 years ago

muthusabarinathan commented 6 years ago

Hi, I got this error from signalr-client and unable to catch the exception as well.Can you please help me to fix this issue

Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/gevent/greenlet.py", line 536, in run result = self._run(*self.args, **self.kwargs) File "/usr/lib/python2.7/site-packages/signalr/_connection.py", line 53, in wrapped_listener listener() File "/usr/lib/python2.7/site-packages/signalr/transports/_ws_transport.py", line 42, in _receive for notification in self.ws: File "/usr/lib/python2.7/site-packages/websocket/_core.py", line 108, in iter yield self.recv() File "/usr/lib/python2.7/site-packages/websocket/_core.py", line 300, in recv opcode, data = self.recv_data() File "/usr/lib/python2.7/site-packages/websocket/_core.py", line 317, in recv_data opcode, frame = self.recv_data_frame(control_frame) File "/usr/lib/python2.7/site-packages/websocket/_core.py", line 330, in recv_data_frame frame = self.recv_frame() File "/usr/lib/python2.7/site-packages/websocket/_core.py", line 364, in recv_frame return self.frame_buffer.recv_frame() File "/usr/lib/python2.7/site-packages/websocket/_abnf.py", line 361, in recv_frame self.recv_header() File "/usr/lib/python2.7/site-packages/websocket/_abnf.py", line 309, in recv_header header = self.recv_strict(2) File "/usr/lib/python2.7/site-packages/websocket/_abnf.py", line 396, in recvstrict bytes = self.recv(min(16384, shortage)) File "/usr/lib/python2.7/site-packages/websocket/_core.py", line 434, in _recv return recv(self.sock, bufsize) File "/usr/lib/python2.7/site-packages/websocket/socket.py", line 81, in recv bytes = sock.recv(bufsize) File "/usr/lib/python2.7/site-packages/gevent/_sslgte279.py", line 458, in recv return self.read(buflen) File "/usr/lib/python2.7/site-packages/gevent/_sslgte279.py", line 314, in read return self._sslobj.read(len or 1024) error: [Errno 104] Connection reset by peer Tue Jul 17 08:22:31 2018 <Greenlet at 0xb559fb20L: wrapped_listener> failed with error

desstannoz commented 6 years ago

I have same problem

rbrook commented 5 years ago

Same problem here. Anyone got a solution? @desstannoz , @muthusabarinathan Thanks!

minhtuan221 commented 4 years ago

I have the same problem here. After I took time to research, I found that because of Connection Timeout. For example, place a row time.sleep(16) in your handler function (that mean you stall it for 16 second). You will see the error thrown