summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorShatil Rafiullah <shatil@atomtickets.com>2017-06-04 12:59:12 -0700
committerShatil Rafiullah <shatil@atomtickets.com>2017-06-04 12:59:12 -0700
commitb782778e1a9374b160d00a3d67370e2be48bc688 (patch)
tree74437b5ae15131c576aef4152383ee9b0aa94197 /examples
parent6b11f2677fe6d4da653a85512ab73fa31c27214f (diff)
downloaddnspython-b782778e1a9374b160d00a3d67370e2be48bc688.tar.gz
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 =`).
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions