Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection reset by peer #43

Open
muthusabarinathan opened this issue Jul 17, 2018 · 3 comments
Open

Connection reset by peer #43

muthusabarinathan opened this issue Jul 17, 2018 · 3 comments

Comments

@muthusabarinathan
Copy link

muthusabarinathan commented Jul 17, 2018

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 recv_strict
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
Copy link

I have same problem

@rbrook
Copy link

rbrook commented Apr 3, 2019

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

@minhtuan221
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants