There are random TLS errors while connecting to XMPP server, most likely related to domain name sent in SSL handshake (OpenSSL)
This is a fix for the issue with accessing one of our clients servers.
Works perfectly now.
There are random TLS errors while connecting to XMPP server, most likely related to domain name sent in SSL handshake (OpenSSL)