mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 05:57:52 +00:00
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.
This commit is contained in:
parent
30b6ac4192
commit
21baad0a8f
@ -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…
x
Reference in New Issue
Block a user