2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

fix: test: Check read value in upforwd/ans4

The ans4 server wasn't shutting down cleanly sometimes.  Check that read returns the
expected value for the message length or exit read loop.

Closes #4301

Merge branch '4301-check-read-value-in-ans4' into 'main'

See merge request isc-projects/bind9!9537
This commit is contained in:
Mark Andrews
2024-09-24 07:26:27 +00:00

View File

@@ -357,7 +357,9 @@ for (;;) {
last unless $n == 2;
my $len = unpack("n", $lenbuf);
$n = $conn->sysread($buf, $len);
last unless $n == $len;
}
sleep(1);
$conn->close;
}
}