mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-20 00:10:43 -05: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:
commit
467f9bf5c5
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue