diff options
-rw-r--r-- | slixmpp/xmlstream/resolver.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/slixmpp/xmlstream/resolver.py b/slixmpp/xmlstream/resolver.py index ab1424aa..a3697d14 100644 --- a/slixmpp/xmlstream/resolver.py +++ b/slixmpp/xmlstream/resolver.py @@ -39,7 +39,9 @@ def default_resolver(): is available. Otherwise, ``None``. """ if AIODNS_AVAILABLE: - return aiodns.DNSResolver(loop=asyncio.get_event_loop()) + return aiodns.DNSResolver(loop=asyncio.get_event_loop(), + tries=1, + timeout=1.0) return None |