selftest: Make dns_hub socket timeout match DNS_REQUEST_TIMEOUT
authorTim Beale <timbeale@catalyst.net.nz>
Sun, 3 Feb 2019 20:28:07 +0000 (09:28 +1300)
committerRalph Boehme <slow@samba.org>
Mon, 11 Feb 2019 10:41:21 +0000 (11:41 +0100)
commit55cce815876a235f9a5e6015a96d1984bcf3a4ed
tree12a5fe6522a5a2deaec4853f13fc1c6e3c2198e0
parent2e8daeb2bb30f57284f80cac51eb005f775e155f
selftest: Make dns_hub socket timeout match DNS_REQUEST_TIMEOUT

I was hitting the recv_packet = s.recv(2048, 0) exception because
the socket timeout was reached. We've seen it before, but it seemed more
common after changing the default process-model to prefork. This patch
makes the socket timeout used by the python code consistent with the C
code.

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
selftest/target/dns_hub.py