]> git.ipfire.org Git - thirdparty/dnspython.git/commit
lifetime (timeout) support for dns.resolver.query 258/head
authorShatil Rafiullah <shatil@atomtickets.com>
Sun, 4 Jun 2017 19:59:12 +0000 (12:59 -0700)
committerShatil Rafiullah <shatil@atomtickets.com>
Sun, 4 Jun 2017 19:59:12 +0000 (12:59 -0700)
commitb782778e1a9374b160d00a3d67370e2be48bc688
tree74437b5ae15131c576aef4152383ee9b0aa94197
parent6b11f2677fe6d4da653a85512ab73fa31c27214f
lifetime (timeout) support for dns.resolver.query

Introduces `lifetime` param to `dns.resolver.query`, allowing user to
specify a timeout for querying DNS resolvers instead of being stuck on
the hardcoded default.

This doesn't modify the `Resolver` _instance_ itself, so subsequent
calls to it, without specifying `lifetime` as a param, will honor the
default value configured in `reset` (see `self.lifetime =`).
dns/resolver.py