Increased timeout

master
Stephane Bortzmeyer 10 years ago
parent 45de4c221d
commit cd343d80ef

@ -35,9 +35,12 @@ class UnknownError(Exception):
class Resolver():
def __init__(self, nameservers=None, maximum=3, timeout=0.5,
def __init__(self, nameservers=None, maximum=3, timeout=1.0,
edns_version=0, edns_payload=DEFAULT_EDNS_SIZE, do_dnssec=False):
# TODO: ednsflags such as NSID
# TODO: the default timeout is too high for authoritative name
# servers and too low for some far-away recursive: separate
# the two cases?
""" A "None" value for the parameter nameservers means to use
the system's default resolver(s). Otherwise, this parameter
is an *array* of the IP addresses of the resolvers.

@ -6,7 +6,7 @@ use_setuptools()
from setuptools import setup
setup(name='DNS-LG',
version='2013012002',
version='2013012003',
description='DNS Looking Glass',
license='BSD',
author='Stephane Bortzmeyer',

@ -136,7 +136,8 @@ delay
echo We should be able to query the root.
# TODO: But . is special in a URL and Apache modifies it (it works
# with the test server). Hence the pseudo-TLD root.
# with the test server). Hence the pseudo-TLD root. The rest is not
# guaranteed to work.
for format in text zone xml html json; do
${WEB} ${URL}/root/SOA?format=${format}
${WEB} ${URL}/./SOA?format=${format}

Loading…
Cancel
Save