skoczen / will

Will is a simple, beautiful-to-code bot for slack, hipchat, and a whole lot more.
https://heywill.io
MIT License
406 stars 171 forks source link

Socket Error #104: Connection reset by peer #232

Closed cachrisman closed 7 years ago

cachrisman commented 8 years ago

I'm occasionally getting a Socket Error #104 and my bot is offline until I restart it. Here is a recent debug log:

DEBUG Event triggered: socket_error
ERROR Socket Error #104: Connection reset by peer
DEBUG reconnecting...
DEBUG Event triggered: session_end
DEBUG SEND (IMMED): </stream:stream>
DEBUG Event triggered: socket_error
WARNING Failed to send </stream:stream>
DEBUG Event triggered: session_end
DEBUG Event triggered: socket_error
DEBUG Event triggered: disconnected
DEBUG ==== TRANSITION connected -> disconnected
INFO Waiting for </stream:stream> from server
DEBUG Event triggered: socket_error
DEBUG Event triggered: disconnected
DEBUG ==== TRANSITION disconnected -> disconnected
DEBUG connecting...
DEBUG Waiting 1.87975616702 seconds before connecting.
DEBUG Connecting to 54.164.77.133:5222
DEBUG Event triggered: connected
DEBUG ==== TRANSITION disconnected -> connected
DEBUG SEND (IMMED): <stream:stream to='chat.hipchat.com' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en' version='1.0'>
DEBUG RECV: <stream:stream from="chat.hipchat.com" version="1.0" id="cd8675e3f5689d22">
DEBUG RECV: <stream:features xmlns="http://etherx.jabber.org/streams"><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"><required /></starttls></stream:features>
WARNING Timed out waiting for SendWait_2f916e9b-d0b9-4561-8285-bb5c01f4508c-5423
WARNING Use of send mask waiters is deprecated.

How can I debug this and keep this from happening?

brandonsturgeon commented 7 years ago

Looks like there's some decent talk about this same problem here https://github.com/fritzy/SleekXMPP/issues/423

skoczen commented 7 years ago

Closing this up from staleness - @cachrisman please reopen if you're still seeing this!