Commit 3bd4db61 authored by Witold Krecicki's avatar Witold Krecicki Committed by Witold Krecicki

Retry sending response in ans.py in qmin test

An rare intermittent qmin test failure was caused by ans.py
not sending the answer over IPv6, it should be fixed by resending
the response in case of failure.
parent 7443bd5c
Pipeline #31671 passed with stages
in 22 minutes and 54 seconds
......@@ -239,7 +239,8 @@ while running:
rsp = create_response(msg[0])
if rsp:
print(dns.rcode.to_text(rsp.rcode()))
s.sendto(rsp.to_wire(), msg[1])
while s.sendto(rsp.to_wire(), msg[1]) == 0:
pass
else:
print("NO RESPONSE")
if not running:
......
......@@ -180,7 +180,8 @@ while running:
rsp = create_response(msg[0])
if rsp:
print(dns.rcode.to_text(rsp.rcode()))
s.sendto(rsp.to_wire(), msg[1])
while s.sendto(rsp.to_wire(), msg[1]) == 0:
pass
else:
print("NO RESPONSE")
if not running:
......
......@@ -182,7 +182,8 @@ while running:
rsp = create_response(msg[0])
if rsp:
print(dns.rcode.to_text(rsp.rcode()))
s.sendto(rsp.to_wire(), msg[1])
while s.sendto(rsp.to_wire(), msg[1]) == 0:
pass
else:
print("NO RESPONSE")
if not running:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment