{"action":"opened","issue":{"url":"https://api.github.com/repos/fritzy/SleekXMPP/issues/493","repository_url":"https://api.github.com/repos/fritzy/SleekXMPP","labels_url":"https://api.github.com/repos/fritzy/SleekXMPP/issues/493/labels{/name}","comments_url":"https://api.github.com/repos/fritzy/SleekXMPP/issues/493/comments","events_url":"https://api.github.com/repos/fritzy/SleekXMPP/issues/493/events","html_url":"https://github.com/fritzy/SleekXMPP/issues/493","id":366680425,"node_id":"MDU6SXNzdWUzNjY2ODA0MjU=","number":493,"title":"Error connecting to suchat.org","user":{"login":"s-nt-s","id":5998601,"node_id":"MDQ6VXNlcjU5OTg2MDE=","avatar_url":"https://avatars3.githubusercontent.com/u/5998601?v=4","gravatar_id":"","url":"https://api.github.com/users/s-nt-s","html_url":"https://github.com/s-nt-s","followers_url":"https://api.github.com/users/s-nt-s/followers","following_url":"https://api.github.com/users/s-nt-s/following{/other_user}","gists_url":"https://api.github.com/users/s-nt-s/gists{/gist_id}","starred_url":"https://api.github.com/users/s-nt-s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s-nt-s/subscriptions","organizations_url":"https://api.github.com/users/s-nt-s/orgs","repos_url":"https://api.github.com/users/s-nt-s/repos","events_url":"https://api.github.com/users/s-nt-s/events{/privacy}","received_events_url":"https://api.github.com/users/s-nt-s/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-04T08:39:46Z","updated_at":"2018-10-04T08:39:46Z","closed_at":null,"author_association":"NONE","body":"Hi\r\n\r\nI have severals bots in suchat.org and most of times they connect without problems, but some times happens this:\r\n\r\n```console\r\n$ python3 --version\r\nPython 3.4.2\r\n$ python3 -c \"import sleekxmpp; print(sleekxmpp.__version__)\"\r\n1.3.2\r\n$ wget https://raw.githubusercontent.com/fritzy/SleekXMPP/develop/examples/echo_client.py\r\n--2018-10-04 10:31:28--  https://raw.githubusercontent.com/fritzy/SleekXMPP/develop/examples/echo_client.py\r\nResolviendo raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.132.133\r\nConectando con raw.githubusercontent.com (raw.githubusercontent.com)[151.101.132.133]:443... conectado.\r\nPetición HTTP enviada, esperando respuesta... 200 OK\r\nLongitud: 5531 (5,4K) [text/plain]\r\nGrabando a: “echo_client.py”\r\n\r\necho_client.py                             100%[=======================================================================================>]   5,40K  --.-KB/s   en 0,004s \r\n\r\n2018-10-04 10:31:29 (1,18 MB/s) - “echo_client.py” guardado [5531/5531]\r\n$ python3 echo_client.py --j ****@suchat.org -p *********** -v\r\nDEBUG    Loaded Plugin: RFC 6120: Stream Feature: STARTTLS\r\nDEBUG    Loaded Plugin: RFC 6120: Stream Feature: Resource Binding\r\nDEBUG    Loaded Plugin: RFC 3920: Stream Feature: Start Session\r\nDEBUG    Loaded Plugin: RFC 6121: Stream Feature: Roster Versioning\r\nDEBUG    Loaded Plugin: RFC 6121: Stream Feature: Subscription Pre-Approval\r\nDEBUG    Loaded Plugin: RFC 6120: Stream Feature: SASL\r\nDEBUG    Loaded Plugin: XEP-0030: Service Discovery\r\nDEBUG    Loaded Plugin: XEP-0004: Data Forms\r\nDEBUG    Loaded Plugin: XEP-0082: XMPP Date and Time Profiles\r\nDEBUG    Loaded Plugin: XEP-0131: Stanza Headers and Internet Metadata\r\nDEBUG    Loaded Plugin: XEP-0060: Publish-Subscribe\r\nDEBUG    Loaded Plugin: XEP-0199: XMPP Ping\r\nDEBUG    Waiting 1.7906870850063572 seconds before connecting.\r\nDEBUG    DNS: Querying SRV records for suchat.org\r\nDEBUG    DNS: Querying xmpp.suchat.org for AAAA records.\r\nDEBUG    DNS: Querying xmpp.suchat.org for A records.\r\nDEBUG    Connecting to [2001:41d0:2:a2a9::]:5222\r\nDEBUG    Event triggered: socket_error\r\nERROR    Could not connect to [2001:41d0:2:a2a9::]:5222. Socket Error #101: Network is unreachable\r\nDEBUG    Waiting 1.7675897423546207 seconds before connecting.\r\nDEBUG    Connecting to 188.165.215.169:5222\r\nDEBUG    Event triggered: connected\r\nDEBUG     ==== TRANSITION disconnected -> connected\r\nDEBUG    Starting HANDLER THREAD\r\nDEBUG    Loading event runner\r\nDEBUG    SEND (IMMED): <stream:stream to='suchat.org' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en' version='1.0'>\r\nDEBUG    RECV: <stream:stream xml:lang=\"en\" id=\"9525496290478896625\" version=\"1.0\" from=\"suchat.org\">\r\nDEBUG    RECV: <stream:features xmlns=\"http://etherx.jabber.org/streams\"><starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"><required /></starttls></stream:features>\r\nDEBUG    SEND (IMMED): <starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"><required /></starttls>\r\nDEBUG    RECV: <proceed xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\" />\r\nDEBUG    Starting TLS\r\nINFO     Negotiating TLS\r\nINFO     Using SSL version: TLS 1.0\r\nERROR    CERT: Invalid certificate trust chain.\r\nDEBUG    Event triggered: session_end\r\nDEBUG    Event triggered: disconnected\r\nDEBUG     ==== TRANSITION connected -> disconnected\r\nERROR    Can not read from closed socket.\r\nDEBUG    reconnecting...\r\nDEBUG    connecting...\r\nDEBUG    Waiting 1.834838675653222 seconds before connecting.\r\nDEBUG    No remaining DNS records to try.\r\nDEBUG    Waiting 3.721413562827579 seconds before connecting.\r\nDEBUG    DNS: Querying SRV records for suchat.org\r\nDEBUG    DNS: Querying xmpp.suchat.org for AAAA records.\r\nDEBUG    DNS: Querying xmpp.suchat.org for A records.\r\nDEBUG    Connecting to [2001:41d0:2:a2a9::]:5222\r\nDEBUG    Event triggered: socket_error\r\nERROR    Could not connect to [2001:41d0:2:a2a9::]:5222. Socket Error #101: Network is unreachable\r\nDEBUG    Waiting 4.234031140424134 seconds before connecting.\r\nDEBUG    Connecting to 188.165.215.169:5222\r\nDEBUG    Event triggered: connected\r\nDEBUG     ==== TRANSITION disconnected -> connected\r\nDEBUG    SEND (IMMED): <stream:stream to='suchat.org' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en' version='1.0'>\r\nDEBUG    RECV: <stream:stream xml:lang=\"en\" id=\"10699827008664495864\" version=\"1.0\" from=\"suchat.org\">\r\nDEBUG    RECV: <stream:features xmlns=\"http://etherx.jabber.org/streams\"><starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"><required /></starttls></stream:features>\r\nDEBUG    SEND (IMMED): <starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"><required /></starttls>\r\nDEBUG    RECV: <proceed xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\" />\r\nDEBUG    Starting TLS\r\nINFO     Negotiating TLS\r\nINFO     Using SSL version: TLS 1.0\r\nERROR    CERT: Invalid certificate trust chain.\r\nDEBUG    Event triggered: session_end\r\nDEBUG    Event triggered: disconnected\r\nDEBUG     ==== TRANSITION connected -> disconnected\r\nERROR    Can not read from closed socket.\r\nDEBUG    reconnecting...\r\nDEBUG    connecting...\r\nDEBUG    Waiting 1.8162800980902545 seconds before connecting.\r\nDEBUG    No remaining DNS records to try.\r\nDEBUG    Waiting 3.542801647715653 seconds before connecting.\r\nDEBUG    DNS: Querying SRV records for suchat.org\r\nDEBUG    DNS: Querying xmpp.suchat.org for AAAA records.\r\nDEBUG    DNS: Querying xmpp.suchat.org for A records.\r\nDEBUG    Connecting to [2001:41d0:2:a2a9::]:5222\r\nDEBUG    Event triggered: socket_error\r\nERROR    Could not connect to [2001:41d0:2:a2a9::]:5222. Socket Error #101: Network is unreachable\r\nDEBUG    Waiting 3.7979719501974603 seconds before connecting.\r\nDEBUG    Connecting to 188.165.215.169:5222\r\nDEBUG    Event triggered: connected\r\nDEBUG     ==== TRANSITION disconnected -> connected\r\nDEBUG    SEND (IMMED): <stream:stream to='suchat.org' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en' version='1.0'>\r\nDEBUG    RECV: <stream:stream xml:lang=\"en\" id=\"16156301133785727497\" version=\"1.0\" from=\"suchat.org\">\r\nDEBUG    RECV: <stream:features xmlns=\"http://etherx.jabber.org/streams\"><starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"><required /></starttls></stream:features>\r\nDEBUG    SEND (IMMED): <starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"><required /></starttls>\r\nDEBUG    RECV: <proceed xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\" />\r\nDEBUG    Starting TLS\r\nINFO     Negotiating TLS\r\nINFO     Using SSL version: TLS 1.0\r\nERROR    CERT: Invalid certificate trust chain.\r\nDEBUG    Event triggered: session_end\r\nDEBUG    Event triggered: disconnected\r\nDEBUG     ==== TRANSITION connected -> disconnected\r\nERROR    Can not read from closed socket.\r\nDEBUG    reconnecting...\r\nDEBUG    connecting...\r\nDEBUG    Waiting 1.953669722120318 seconds before connecting.\r\nDEBUG    No remaining DNS records to try.\r\nDEBUG    Waiting 3.766649938906112 seconds before connecting.\r\nDEBUG    DNS: Querying SRV records for suchat.org\r\nDEBUG    DNS: Querying xmpp.suchat.org for AAAA records.\r\nDEBUG    DNS: Querying xmpp.suchat.org for A records.\r\nDEBUG    Connecting to [2001:41d0:2:a2a9::]:5222\r\nDEBUG    Event triggered: socket_error\r\nERROR    Could not connect to [2001:41d0:2:a2a9::]:5222. Socket Error #101: Network is unreachable\r\nDEBUG    Waiting 3.847272995358607 seconds before connecting.\r\nDEBUG    Connecting to 188.165.215.169:5222\r\nDEBUG    Event triggered: connected\r\nDEBUG     ==== TRANSITION disconnected -> connected\r\nDEBUG    SEND (IMMED): <stream:stream to='suchat.org' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en' version='1.0'>\r\nDEBUG    RECV: <stream:stream xml:lang=\"en\" id=\"9306893102218360521\" version=\"1.0\" from=\"suchat.org\">\r\nDEBUG    RECV: <stream:features xmlns=\"http://etherx.jabber.org/streams\"><starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"><required /></starttls></stream:features>\r\nDEBUG    SEND (IMMED): <starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"><required /></starttls>\r\nDEBUG    RECV: <proceed xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\" />\r\nDEBUG    Starting TLS\r\nINFO     Negotiating TLS\r\nINFO     Using SSL version: TLS 1.0\r\nERROR    CERT: Invalid certificate trust chain.\r\nDEBUG    Event triggered: session_end\r\nDEBUG    Event triggered: disconnected\r\nDEBUG     ==== TRANSITION connected -> disconnected\r\nERROR    Can not read from closed socket.\r\nDEBUG    reconnecting...\r\nDEBUG    connecting...\r\nDEBUG    Waiting 1.9872323546564297 seconds before connecting.\r\nDEBUG    No remaining DNS records to try.\r\nDEBUG    Waiting 4.827091068031846 seconds before connecting.\r\nDEBUG    DNS: Querying SRV records for suchat.org\r\nDEBUG    DNS: Querying xmpp.suchat.org for AAAA records.\r\nDEBUG    DNS: Querying xmpp.suchat.org for A records.\r\nDEBUG    Connecting to [2001:41d0:2:a2a9::]:5222\r\nDEBUG    Event triggered: socket_error\r\nERROR    Could not connect to [2001:41d0:2:a2a9::]:5222. Socket Error #101: Network is unreachable\r\nDEBUG    Waiting 4.947909974058594 seconds before connecting.\r\nDEBUG    Connecting to 188.165.215.169:5222\r\nDEBUG    Event triggered: connected\r\nDEBUG     ==== TRANSITION disconnected -> connected\r\nDEBUG    SEND (IMMED): <stream:stream to='suchat.org' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en' version='1.0'>\r\nDEBUG    RECV: <stream:stream xml:lang=\"en\" id=\"4004587142856999622\" version=\"1.0\" from=\"suchat.org\">\r\nDEBUG    RECV: <stream:features xmlns=\"http://etherx.jabber.org/streams\"><starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"><required /></starttls></stream:features>\r\nDEBUG    SEND (IMMED): <starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"><required /></starttls>\r\nDEBUG    RECV: <proceed xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\" />\r\nDEBUG    Starting TLS\r\nINFO     Negotiating TLS\r\nINFO     Using SSL version: TLS 1.0\r\nERROR    CERT: Invalid certificate trust chain.\r\nDEBUG    Event triggered: session_end\r\nDEBUG    Event triggered: disconnected\r\nDEBUG     ==== TRANSITION connected -> disconnected\r\nERROR    Can not read from closed socket.\r\nDEBUG    reconnecting...\r\nDEBUG    connecting...\r\nDEBUG    Waiting 2.0044498729894755 seconds before connecting.\r\nDEBUG    No remaining DNS records to try.\r\nDEBUG    Waiting 4.275875554829464 seconds before connecting.\r\nDEBUG    DNS: Querying SRV records for suchat.org\r\nDEBUG    DNS: Querying xmpp.suchat.org for AAAA records.\r\nDEBUG    DNS: Querying xmpp.suchat.org for A records.\r\nDEBUG    Connecting to [2001:41d0:2:a2a9::]:5222\r\nDEBUG    Event triggered: socket_error\r\nERROR    Could not connect to [2001:41d0:2:a2a9::]:5222. Socket Error #101: Network is unreachable\r\nDEBUG    Waiting 4.479915780478887 seconds before connecting.\r\nDEBUG    Connecting to 188.165.215.169:5222\r\nDEBUG    Event triggered: connected\r\nDEBUG     ==== TRANSITION disconnected -> connected\r\nDEBUG    SEND (IMMED): <stream:stream to='suchat.org' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en' version='1.0'>\r\nDEBUG    RECV: <stream:stream xml:lang=\"en\" id=\"16834947435741320894\" version=\"1.0\" from=\"suchat.org\">\r\nDEBUG    RECV: <stream:features xmlns=\"http://etherx.jabber.org/streams\"><starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"><required /></starttls></stream:features>\r\nDEBUG    SEND (IMMED): <starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"><required /></starttls>\r\nDEBUG    RECV: <proceed xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\" />\r\nDEBUG    Starting TLS\r\nINFO     Negotiating TLS\r\nINFO     Using SSL version: TLS 1.0\r\nERROR    CERT: Invalid certificate trust chain.\r\nDEBUG    Event triggered: session_end\r\nDEBUG    Event triggered: disconnected\r\nDEBUG     ==== TRANSITION connected -> disconnected\r\nERROR    Can not read from closed socket.\r\nDEBUG    reconnecting...\r\nDEBUG    connecting...\r\nDEBUG    Waiting 2.1198248194177456 seconds before connecting.\r\nDEBUG    No remaining DNS records to try.\r\nDEBUG    Waiting 4.063997177047797 seconds before connecting.\r\nDEBUG    DNS: Querying SRV records for suchat.org\r\nDEBUG    DNS: Querying xmpp.suchat.org for AAAA records.\r\nDEBUG    DNS: Querying xmpp.suchat.org for A records.\r\nDEBUG    Connecting to [2001:41d0:2:a2a9::]:5222\r\nDEBUG    Event triggered: socket_error\r\nERROR    Could not connect to [2001:41d0:2:a2a9::]:5222. Socket Error #101: Network is unreachable\r\nDEBUG    Waiting 3.992024509687005 seconds before connecting.\r\nDEBUG    Connecting to 188.165.215.169:5222\r\nDEBUG    Event triggered: connected\r\nDEBUG     ==== TRANSITION disconnected -> connected\r\nDEBUG    SEND (IMMED): <stream:stream to='suchat.org' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en' version='1.0'>\r\nDEBUG    RECV: <stream:stream xml:lang=\"en\" id=\"4956406150816875157\" version=\"1.0\" from=\"suchat.org\">\r\nDEBUG    RECV: <stream:features xmlns=\"http://etherx.jabber.org/streams\"><starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"><required /></starttls></stream:features>\r\nDEBUG    SEND (IMMED): <starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"><required /></starttls>\r\nDEBUG    RECV: <proceed xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\" />\r\nDEBUG    Starting TLS\r\nINFO     Negotiating TLS\r\nINFO     Using SSL version: TLS 1.0\r\nERROR    CERT: Invalid certificate trust chain.\r\nDEBUG    Event triggered: session_end\r\nDEBUG    Event triggered: disconnected\r\nDEBUG     ==== TRANSITION connected -> disconnected\r\nERROR    Can not read from closed socket.\r\nDEBUG    reconnecting...\r\nDEBUG    connecting...\r\nDEBUG    Waiting 1.7908010134425822 seconds before connecting.\r\nDEBUG    No remaining DNS records to try.\r\nDEBUG    Waiting 3.866114098940563 seconds before connecting.\r\nDEBUG    DNS: Querying SRV records for suchat.org\r\nDEBUG    DNS: Querying xmpp.suchat.org for AAAA records.\r\nDEBUG    DNS: Querying xmpp.suchat.org for A records.\r\nDEBUG    Connecting to [2001:41d0:2:a2a9::]:5222\r\nDEBUG    Event triggered: socket_error\r\nERROR    Could not connect to [2001:41d0:2:a2a9::]:5222. Socket Error #101: Network is unreachable\r\nDEBUG    Waiting 3.4809117285354603 seconds before connecting.\r\nDEBUG    Connecting to 188.165.215.169:5222\r\nDEBUG    Event triggered: connected\r\nDEBUG     ==== TRANSITION disconnected -> connected\r\nDEBUG    SEND (IMMED): <stream:stream to='suchat.org' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en' version='1.0'>\r\nDEBUG    RECV: <stream:stream xml:lang=\"en\" id=\"15020008191445402581\" version=\"1.0\" from=\"suchat.org\">\r\nDEBUG    RECV: <stream:features xmlns=\"http://etherx.jabber.org/streams\"><starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"><required /></starttls></stream:features>\r\nDEBUG    SEND (IMMED): <starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"><required /></starttls>\r\nDEBUG    RECV: <proceed xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\" />\r\nDEBUG    Starting TLS\r\nINFO     Negotiating TLS\r\nINFO     Using SSL version: TLS 1.0\r\nERROR    CERT: Invalid certificate trust chain.\r\nDEBUG    Event triggered: session_end\r\nDEBUG    Event triggered: disconnected\r\nDEBUG     ==== TRANSITION connected -> disconnected\r\nERROR    Can not read from closed socket.\r\nDEBUG    reconnecting...\r\nDEBUG    connecting...\r\nDEBUG    Waiting 2.4261512736075797 seconds before connecting.\r\nDEBUG    No remaining DNS records to try.\r\nDEBUG    Waiting 4.331380733044947 seconds before connecting.\r\nDEBUG    DNS: Querying SRV records for suchat.org\r\nDEBUG    DNS: Querying xmpp.suchat.org for AAAA records.\r\nDEBUG    DNS: Querying xmpp.suchat.org for A records.\r\nDEBUG    Connecting to [2001:41d0:2:a2a9::]:5222\r\nDEBUG    Event triggered: socket_error\r\nERROR    Could not connect to [2001:41d0:2:a2a9::]:5222. Socket Error #101: Network is unreachable\r\nDEBUG    Waiting 4.852399373535239 seconds before connecting.\r\nDEBUG    Connecting to 188.165.215.169:5222\r\nDEBUG    Event triggered: connected\r\nDEBUG     ==== TRANSITION disconnected -> connected\r\nDEBUG    SEND (IMMED): <stream:stream to='suchat.org' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en' version='1.0'>\r\nDEBUG    RECV: <stream:stream xml:lang=\"en\" id=\"10855254132894363774\" version=\"1.0\" from=\"suchat.org\">\r\nDEBUG    RECV: <stream:features xmlns=\"http://etherx.jabber.org/streams\"><starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"><required /></starttls></stream:features>\r\nDEBUG    SEND (IMMED): <starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"><required /></starttls>\r\nDEBUG    RECV: <proceed xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\" />\r\nDEBUG    Starting TLS\r\nINFO     Negotiating TLS\r\nINFO     Using SSL version: TLS 1.0\r\nERROR    CERT: Invalid certificate trust chain.\r\nDEBUG    Event triggered: session_end\r\nDEBUG    Event triggered: disconnected\r\nDEBUG     ==== TRANSITION connected -> disconnected\r\nERROR    Can not read from closed socket.\r\nDEBUG    reconnecting...\r\nDEBUG    connecting...\r\nDEBUG    Waiting 1.6303969443000457 seconds before connecting.\r\nDEBUG    No remaining DNS records to try.\r\nDEBUG    Waiting 2.85514197770039 seconds before connecting.\r\nDEBUG    DNS: Querying SRV records for suchat.org\r\nDEBUG    DNS: Querying xmpp.suchat.org for AAAA records.\r\nDEBUG    DNS: Querying xmpp.suchat.org for A records.\r\nDEBUG    Connecting to [2001:41d0:2:a2a9::]:5222\r\nDEBUG    Event triggered: socket_error\r\nERROR    Could not connect to [2001:41d0:2:a2a9::]:5222. Socket Error #101: Network is unreachable\r\nDEBUG    Waiting 3.4522148324033664 seconds before connecting.\r\nDEBUG    Connecting to 188.165.215.169:5222\r\nDEBUG    Event triggered: connected\r\nDEBUG     ==== TRANSITION disconnected -> connected\r\nDEBUG    SEND (IMMED): <stream:stream to='suchat.org' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en' version='1.0'>\r\nDEBUG    RECV: <stream:stream xml:lang=\"en\" id=\"16495253314381098570\" version=\"1.0\" from=\"suchat.org\">\r\nDEBUG    RECV: <stream:features xmlns=\"http://etherx.jabber.org/streams\"><starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"><required /></starttls></stream:features>\r\nDEBUG    SEND (IMMED): <starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"><required /></starttls>\r\nDEBUG    RECV: <proceed xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\" />\r\nDEBUG    Starting TLS\r\nINFO     Negotiating TLS\r\nINFO     Using SSL version: TLS 1.0\r\nERROR    CERT: Invalid certificate trust chain.\r\nDEBUG    Event triggered: session_end\r\nDEBUG    Event triggered: disconnected\r\nDEBUG     ==== TRANSITION connected -> disconnected\r\nERROR    Can not read from closed socket.\r\nDEBUG    reconnecting...\r\nDEBUG    connecting...\r\nDEBUG    Waiting 2.0099490580734773 seconds before connecting.\r\nDEBUG    No remaining DNS records to try.\r\nDEBUG    Waiting 3.8531593662445003 seconds before connecting.\r\nDEBUG    DNS: Querying SRV records for suchat.org\r\nDEBUG    DNS: Querying xmpp.suchat.org for AAAA records.\r\nDEBUG    DNS: Querying xmpp.suchat.org for A records.\r\nDEBUG    Connecting to [2001:41d0:2:a2a9::]:5222\r\nDEBUG    Event triggered: socket_error\r\nERROR    Could not connect to [2001:41d0:2:a2a9::]:5222. Socket Error #101: Network is unreachable\r\nDEBUG    Waiting 4.841357255817625 seconds before connecting.\r\nDEBUG    Connecting to 188.165.215.169:5222\r\nDEBUG    Event triggered: connected\r\nDEBUG     ==== TRANSITION disconnected -> connected\r\nDEBUG    SEND (IMMED): <stream:stream to='suchat.org' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en' version='1.0'>\r\nDEBUG    RECV: <stream:stream xml:lang=\"en\" id=\"14523615996893915673\" version=\"1.0\" from=\"suchat.org\">\r\nDEBUG    RECV: <stream:features xmlns=\"http://etherx.jabber.org/streams\"><starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"><required /></starttls></stream:features>\r\nDEBUG    SEND (IMMED): <starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"><required /></starttls>\r\nDEBUG    RECV: <proceed xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\" />\r\nDEBUG    Starting TLS\r\nINFO     Negotiating TLS\r\nINFO     Using SSL version: TLS 1.0\r\nERROR    CERT: Invalid certificate trust chain.\r\nDEBUG    Event triggered: session_end\r\nDEBUG    Event triggered: disconnected\r\nDEBUG     ==== TRANSITION connected -> disconnected\r\nERROR    Can not read from closed socket.\r\nDEBUG    reconnecting...\r\nDEBUG    connecting...\r\nDEBUG    Waiting 2.177115393904278 seconds before connecting.\r\nDEBUG    No remaining DNS records to try.\r\nDEBUG    Waiting 4.227199784997044 seconds before connecting.\r\nDEBUG    DNS: Querying SRV records for suchat.org\r\nDEBUG    DNS: Querying xmpp.suchat.org for AAAA records.\r\nDEBUG    DNS: Querying xmpp.suchat.org for A records.\r\nDEBUG    Connecting to [2001:41d0:2:a2a9::]:5222\r\nDEBUG    Event triggered: socket_error\r\nERROR    Could not connect to [2001:41d0:2:a2a9::]:5222. Socket Error #101: Network is unreachable\r\nDEBUG    Waiting 4.838254046640243 seconds before connecting.\r\nDEBUG    Connecting to 188.165.215.169:5222\r\nDEBUG    Event triggered: connected\r\nDEBUG     ==== TRANSITION disconnected -> connected\r\nDEBUG    SEND (IMMED): <stream:stream to='suchat.org' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en' version='1.0'>\r\nDEBUG    RECV: <stream:stream xml:lang=\"en\" id=\"5433676865363997008\" version=\"1.0\" from=\"suchat.org\">\r\nDEBUG    RECV: <stream:features xmlns=\"http://etherx.jabber.org/streams\"><starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"><required /></starttls></stream:features>\r\nDEBUG    SEND (IMMED): <starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"><required /></starttls>\r\nDEBUG    RECV: <proceed xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\" />\r\nDEBUG    Starting TLS\r\nINFO     Negotiating TLS\r\nINFO     Using SSL version: TLS 1.0\r\nERROR    CERT: Invalid certificate trust chain.\r\nDEBUG    Event triggered: session_end\r\nDEBUG    Event triggered: disconnected\r\nDEBUG     ==== TRANSITION connected -> disconnected\r\nERROR    Can not read from closed socket.\r\nDEBUG    reconnecting...\r\nDEBUG    connecting...\r\nDEBUG    Waiting 2.1748310002945357 seconds before connecting.\r\nDEBUG    No remaining DNS records to try.\r\nDEBUG    Waiting 3.6297162204760607 seconds before connecting.\r\nDEBUG    DNS: Querying SRV records for suchat.org\r\nDEBUG    DNS: Querying xmpp.suchat.org for AAAA records.\r\nDEBUG    DNS: Querying xmpp.suchat.org for A records.\r\nDEBUG    Connecting to [2001:41d0:2:a2a9::]:5222\r\nDEBUG    Event triggered: socket_error\r\nERROR    Could not connect to [2001:41d0:2:a2a9::]:5222. Socket Error #101: Network is unreachable\r\nDEBUG    Waiting 5.043526364046591 seconds before connecting.\r\nDEBUG    Connecting to 188.165.215.169:5222\r\nDEBUG    Event triggered: connected\r\nDEBUG     ==== TRANSITION disconnected -> connected\r\nDEBUG    SEND (IMMED): <stream:stream to='suchat.org' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en' version='1.0'>\r\nDEBUG    RECV: <stream:stream xml:lang=\"en\" id=\"3961165196208956338\" version=\"1.0\" from=\"suchat.org\">\r\nDEBUG    RECV: <stream:features xmlns=\"http://etherx.jabber.org/streams\"><starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"><required /></starttls></stream:features>\r\nDEBUG    SEND (IMMED): <starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"><required /></starttls>\r\nDEBUG    RECV: <proceed xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\" />\r\nDEBUG    Starting TLS\r\nINFO     Negotiating TLS\r\nINFO     Using SSL version: TLS 1.0\r\nERROR    CERT: Invalid certificate trust chain.\r\nDEBUG    Event triggered: session_end\r\nDEBUG    Event triggered: disconnected\r\nDEBUG     ==== TRANSITION connected -> disconnected\r\nERROR    Can not read from closed socket.\r\nDEBUG    reconnecting...\r\nDEBUG    connecting...\r\nDEBUG    Waiting 1.9960937482370824 seconds before connecting.\r\nDEBUG    No remaining DNS records to try.\r\nDEBUG    Waiting 4.230469218152044 seconds before connecting.\r\nDEBUG    DNS: Querying SRV records for suchat.org\r\nDEBUG    DNS: Querying xmpp.suchat.org for AAAA records.\r\nDEBUG    DNS: Querying xmpp.suchat.org for A records.\r\nDEBUG    Connecting to [2001:41d0:2:a2a9::]:5222\r\nDEBUG    Event triggered: socket_error\r\nERROR    Could not connect to [2001:41d0:2:a2a9::]:5222. Socket Error #101: Network is unreachable\r\nDEBUG    Waiting 3.969761939231779 seconds before connecting.\r\nDEBUG    Connecting to 188.165.215.169:5222\r\nDEBUG    Event triggered: connected\r\nDEBUG     ==== TRANSITION disconnected -> connected\r\nDEBUG    SEND (IMMED): <stream:stream to='suchat.org' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en' version='1.0'>\r\nDEBUG    RECV: <stream:stream xml:lang=\"en\" id=\"13968075230468358504\" version=\"1.0\" from=\"suchat.org\">\r\nDEBUG    RECV: <stream:features xmlns=\"http://etherx.jabber.org/streams\"><starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"><required /></starttls></stream:features>\r\nDEBUG    SEND (IMMED): <starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"><required /></starttls>\r\nDEBUG    RECV: <proceed xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\" />\r\nDEBUG    Starting TLS\r\nINFO     Negotiating TLS\r\nINFO     Using SSL version: TLS 1.0\r\nERROR    CERT: Invalid certificate trust chain.\r\nDEBUG    Event triggered: session_end\r\nDEBUG    Event triggered: disconnected\r\nDEBUG     ==== TRANSITION connected -> disconnected\r\nERROR    Can not read from closed socket.\r\nDEBUG    reconnecting...\r\nDEBUG    connecting...\r\nDEBUG    Waiting 1.8658222218961098 seconds before connecting.\r\nDEBUG    No remaining DNS records to try.\r\nDEBUG    Waiting 3.424149244014449 seconds before connecting.\r\nDEBUG    DNS: Querying SRV records for suchat.org\r\nDEBUG    DNS: Querying xmpp.suchat.org for AAAA records.\r\nDEBUG    DNS: Querying xmpp.suchat.org for A records.\r\nDEBUG    Connecting to [2001:41d0:2:a2a9::]:5222\r\nDEBUG    Event triggered: socket_error\r\nERROR    Could not connect to [2001:41d0:2:a2a9::]:5222. Socket Error #101: Network is unreachable\r\nDEBUG    Waiting 3.6901447527973947 seconds before connecting.\r\nDEBUG    Connecting to 188.165.215.169:5222\r\nDEBUG    Event triggered: connected\r\nDEBUG     ==== TRANSITION disconnected -> connected\r\nDEBUG    SEND (IMMED): <stream:stream to='suchat.org' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en' version='1.0'>\r\nDEBUG    RECV: <stream:stream xml:lang=\"en\" id=\"2567533475967876404\" version=\"1.0\" from=\"suchat.org\">\r\nDEBUG    RECV: <stream:features xmlns=\"http://etherx.jabber.org/streams\"><starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"><required /></starttls></stream:features>\r\nDEBUG    SEND (IMMED): <starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"><required /></starttls>\r\nDEBUG    RECV: <proceed xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\" />\r\nDEBUG    Starting TLS\r\nINFO     Negotiating TLS\r\nINFO     Using SSL version: TLS 1.0\r\nERROR    CERT: Invalid certificate trust chain.\r\nDEBUG    Event triggered: session_end\r\nDEBUG    Event triggered: disconnected\r\nDEBUG     ==== TRANSITION connected -> disconnected\r\nERROR    Can not read from closed socket.\r\nDEBUG    reconnecting...\r\nDEBUG    connecting...\r\nDEBUG    Waiting 2.1419342493919857 seconds before connecting.\r\nDEBUG    No remaining DNS records to try.\r\nDEBUG    Waiting 5.420571060623578 seconds before connecting.\r\nDEBUG    DNS: Querying SRV records for suchat.org\r\nDEBUG    DNS: Querying xmpp.suchat.org for AAAA records.\r\nDEBUG    DNS: Querying xmpp.suchat.org for A records.\r\nDEBUG    Connecting to [2001:41d0:2:a2a9::]:5222\r\nDEBUG    Event triggered: socket_error\r\nERROR    Could not connect to [2001:41d0:2:a2a9::]:5222. Socket Error #101: Network is unreachable\r\nDEBUG    Waiting 3.8119149604031284 seconds before connecting.\r\nDEBUG    Connecting to 188.165.215.169:5222\r\nDEBUG    Event triggered: connected\r\nDEBUG     ==== TRANSITION disconnected -> connected\r\nDEBUG    SEND (IMMED): <stream:stream to='suchat.org' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en' version='1.0'>\r\nDEBUG    RECV: <stream:stream xml:lang=\"en\" id=\"187749304633753550\" version=\"1.0\" from=\"suchat.org\">\r\nDEBUG    RECV: <stream:features xmlns=\"http://etherx.jabber.org/streams\"><starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"><required /></starttls></stream:features>\r\nDEBUG    SEND (IMMED): <starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"><required /></starttls>\r\nDEBUG    RECV: <proceed xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\" />\r\nDEBUG    Starting TLS\r\nINFO     Negotiating TLS\r\nINFO     Using SSL version: TLS 1.0\r\nERROR    CERT: Invalid certificate trust chain.\r\nDEBUG    Event triggered: session_end\r\nDEBUG    Event triggered: disconnected\r\nDEBUG     ==== TRANSITION connected -> disconnected\r\nERROR    Can not read from closed socket.\r\nDEBUG    reconnecting...\r\nDEBUG    connecting...\r\nDEBUG    Waiting 1.676442223428603 seconds before connecting.\r\nDEBUG    No remaining DNS records to try.\r\nDEBUG    Waiting 3.5409791242135533 seconds before connecting.\r\nDEBUG    DNS: Querying SRV records for suchat.org\r\nDEBUG    DNS: Querying xmpp.suchat.org for AAAA records.\r\nDEBUG    DNS: Querying xmpp.suchat.org for A records.\r\nDEBUG    Connecting to [2001:41d0:2:a2a9::]:5222\r\nDEBUG    Event triggered: socket_error\r\nERROR    Could not connect to [2001:41d0:2:a2a9::]:5222. Socket Error #101: Network is unreachable\r\nDEBUG    Waiting 3.6843006811896197 seconds before connecting.\r\nDEBUG    Connecting to 188.165.215.169:5222\r\nDEBUG    Event triggered: connected\r\nDEBUG     ==== TRANSITION disconnected -> connected\r\nDEBUG    SEND (IMMED): <stream:stream to='suchat.org' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en' version='1.0'>\r\nDEBUG    RECV: <stream:stream xml:lang=\"en\" id=\"6722119527635034386\" version=\"1.0\" from=\"suchat.org\">\r\nDEBUG    RECV: <stream:features xmlns=\"http://etherx.jabber.org/streams\"><starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"><required /></starttls></stream:features>\r\nDEBUG    SEND (IMMED): <starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"><required /></starttls>\r\nDEBUG    RECV: <proceed xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\" />\r\nDEBUG    Starting TLS\r\nINFO     Negotiating TLS\r\nINFO     Using SSL version: TLS 1.0\r\nERROR    CERT: Invalid certificate trust chain.\r\nDEBUG    Event triggered: session_end\r\nDEBUG    Event triggered: disconnected\r\nDEBUG     ==== TRANSITION connected -> disconnected\r\nERROR    Can not read from closed socket.\r\nDEBUG    reconnecting...\r\nDEBUG    connecting...\r\nDEBUG    Waiting 2.0921569417134336 seconds before connecting.\r\nDEBUG    No remaining DNS records to try.\r\nDEBUG    Waiting 4.185523026159937 seconds before connecting.\r\nDEBUG    DNS: Querying SRV records for suchat.org\r\nDEBUG    DNS: Querying xmpp.suchat.org for AAAA records.\r\nDEBUG    DNS: Querying xmpp.suchat.org for A records.\r\nDEBUG    Connecting to [2001:41d0:2:a2a9::]:5222\r\nDEBUG    Event triggered: socket_error\r\nERROR    Could not connect to [2001:41d0:2:a2a9::]:5222. Socket Error #101: Network is unreachable\r\nDEBUG    Waiting 4.283167286964815 seconds before connecting.\r\nDEBUG    Connecting to 188.165.215.169:5222\r\nDEBUG    Event triggered: connected\r\nDEBUG     ==== TRANSITION disconnected -> connected\r\nDEBUG    SEND (IMMED): <stream:stream to='suchat.org' xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' xml:lang='en' version='1.0'>\r\nDEBUG    RECV: <stream:stream xml:lang=\"en\" id=\"14007641114180727755\" version=\"1.0\" from=\"suchat.org\">\r\nDEBUG    RECV: <stream:features xmlns=\"http://etherx.jabber.org/streams\"><starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"><required /></starttls></stream:features>\r\nDEBUG    SEND (IMMED): <starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"><required /></starttls>\r\nDEBUG    RECV: <proceed xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\" />\r\nDEBUG    Starting TLS\r\nINFO     Negotiating TLS\r\nINFO     Using SSL version: TLS 1.0\r\nERROR    CERT: Invalid certificate trust chain.\r\nDEBUG    Event triggered: session_end\r\nDEBUG    Event triggered: disconnected\r\nDEBUG     ==== TRANSITION connected -> disconnected\r\nERROR    Can not read from closed socket.\r\nDEBUG    reconnecting...\r\nDEBUG    connecting...\r\nDEBUG    Waiting 2.2288568952288186 seconds before connecting.\r\nDEBUG    No remaining DNS records to try.\r\nDEBUG    Waiting 3.9490735411137483 seconds before connecting.\r\nDEBUG    DNS: Querying SRV records for suchat.org\r\nDEBUG    DNS: Querying xmpp.suchat.org for AAAA records.\r\nDEBUG    DNS: Querying xmpp.suchat.org for A records.\r\nDEBUG    Connecting to [2001:41d0:2:a2a9::]:5222\r\nDEBUG    Event triggered: socket_error\r\nERROR    Could not connect to [2001:41d0:2:a2a9::]:5222. Socket Error #101: Network is unreachable\r\nDEBUG    Waiting 5.232857413682391 seconds before connecting.\r\n```\r\n\r\nI don't understand why sometimes works fine and sometimes works wrong."}}
{"actor":{"display_login":"s-nt-s"}}