X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=regression-tests.recursor-dnssec%2Ftest_RPZ.py;h=da865ea74cce43f1b8bd2bee2511a4debb87dc5c;hb=bd3db1f795aa7971280e8647fc44977b4b22cb5c;hp=4215eacd33fbe4fd2f8a3804146211b990889a35;hpb=1f6ff1500b8831acd0841133b31d0cbe34e8a34c;p=thirdparty%2Fpdns.git diff --git a/regression-tests.recursor-dnssec/test_RPZ.py b/regression-tests.recursor-dnssec/test_RPZ.py index 4215eacd33..da865ea74c 100644 --- a/regression-tests.recursor-dnssec/test_RPZ.py +++ b/regression-tests.recursor-dnssec/test_RPZ.py @@ -185,7 +185,12 @@ class RPZServer(object): break wire = answer.to_wire() - conn.send(struct.pack("!H", len(wire))) + lenprefix = struct.pack("!H", len(wire)) + + for b in lenprefix: + conn.send(bytes([b])) + time.sleep(0.5) + conn.send(wire) self._currentSerial = serial break