diff options
| author | Shatil Rafiullah <shatil@atomtickets.com> | 2017-06-04 12:59:12 -0700 |
|---|---|---|
| committer | Shatil Rafiullah <shatil@atomtickets.com> | 2017-06-04 12:59:12 -0700 |
| commit | b782778e1a9374b160d00a3d67370e2be48bc688 (patch) | |
| tree | 74437b5ae15131c576aef4152383ee9b0aa94197 /examples | |
| parent | 6b11f2677fe6d4da653a85512ab73fa31c27214f (diff) | |
| download | dnspython-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
