Connection takes a long time when some nameservers in /etc/resolv.conf don’t answer
Moved from tokio-xmpp#10 (closed).
How to reproduce:
- Add some non-existent IP address as a nameserver in
/etc/resolv.conf
.- Keep your working nameserver there.
- Run any example.
The example will be delayed by five seconds while tokio-xmpp tries to resolve the server’s SRV on this non-existent DNS server, after which the timeout will kick in and the connection will get established fine.