xmppo / node-xmpp-bosh

An XMPP BOSH & WebSocket server (connection manager) written on node.js using Javascript
https://github.com/xmppo/node-xmpp-bosh
263 stars 85 forks source link

Allow option to disable XMPP SRV lookups in case they do not exist #129

Closed BenV closed 7 years ago

BenV commented 8 years ago

The DNS entry of the server we are attempting to connect to does not have a SRV record for _xmpp-client._tcp, which causes the connection to hang indefinitely. This allows passing an option to disable that functionality. #124 also works for me, but if the hostname lookup fails I do not want to try SRV next since it seems to hang. Threading these options through was a bit difficult, so let me know if you think it should be done in a different way. It also looks like route_filter was not properly being threaded through to the lookup service, so I modified that as well. Thanks!