xmppo/go-xmpp

connect should use a net.Dialer or net.DialTimeout to guard against indefinitely long blocking

froodian opened this issue · 0 comments

Creating a new client calls net.Dial - this call can block indefinitely depending on the server, so for production systems it is safer to use DialTimeout (and make the timeout value configurable) or even better, take a net.Dialer as configuration and use the Dial function on that.