after a day otrbot got stuck in an error loop
After 1 or 2 days of not being accessed, the otrbot got these error messages in a loop:
Mar 9 14:07:30 otrbot gunicorn[17791]: WARNING:sleekxmpp.xmlstream.xmlstream:Failed to send
Mar 9 14:07:32 otrbot gunicorn[17791]: WARNING:sleekxmpp.xmlstream.xmlstream:SSL write error: retrying
Mar 9 14:07:32 otrbot gunicorn[17791]: ERROR:sleekxmpp.basexmpp:[SSL: BAD_WRITE_RETRY] bad write retry (_ssl.c:1625)
Mar 9 14:07:32 otrbot gunicorn[17791]: Traceback (most recent call last):
Mar 9 14:07:32 otrbot gunicorn[17791]: File "/opt/otrbot/env/local/lib/python2.7/site-packages/sleekxmpp/xmlstream/xmlstream.py", line 1330, in send_raw
Mar 9 14:07:32 otrbot gunicorn[17791]: sent += self.socket.send(data[sent:])
Mar 9 14:07:32 otrbot gunicorn[17791]: File "/usr/lib/python2.7/ssl.py", line 667, in send
Mar 9 14:07:32 otrbot gunicorn[17791]: v = self._sslobj.write(data)
Mar 9 14:07:32 otrbot gunicorn[17791]: SSLError: [SSL: BAD_WRITE_RETRY] bad write retry (_ssl.c:1625)
Mar 9 14:07:32 otrbot gunicorn[17791]: WARNING:sleekxmpp.xmlstream.xmlstream:Failed to send
Mar 9 14:07:34 otrbot gunicorn[17791]: WARNING:sleekxmpp.xmlstream.xmlstream:SSL write error: retrying
Mar 9 14:07:35 otrbot gunicorn[17791]: ERROR:sleekxmpp.basexmpp:[SSL: BAD_WRITE_RETRY] bad write retry (_ssl.c:1625)
Mar 9 14:07:35 otrbot gunicorn[17791]: Traceback (most recent call last):
Mar 9 14:07:35 otrbot gunicorn[17791]: File "/opt/otrbot/env/local/lib/python2.7/site-packages/sleekxmpp/xmlstream/xmlstream.py", line 1330, in send_raw
Mar 9 14:07:35 otrbot gunicorn[17791]: sent += self.socket.send(data[sent:])
Mar 9 14:07:35 otrbot gunicorn[17791]: File "/usr/lib/python2.7/ssl.py", line 667, in send
Mar 9 14:07:35 otrbot gunicorn[17791]: v = self._sslobj.write(data)
Mar 9 14:07:35 otrbot gunicorn[17791]: SSLError: [SSL: BAD_WRITE_RETRY] bad write retry (_ssl.c:1625)