Honour single read per client isc_nm_read() call in the TLSDNS

The TLSDNS transport was not honouring the single read callback for
TLSDNS client.  It would call the read callbacks repeatedly in case the
single TLS read would result in multiple DNS messages in the decoded
buffer.

(cherry picked from commit e3c628d562)
This commit is contained in:
Ondřej Surý 2022-12-01 18:31:05 +01:00
parent 8b14eb577f
commit f17f5e831b
No known key found for this signature in database
GPG key ID: 2820F37E873DEA41

View file

@ -1120,6 +1120,10 @@ tls_cycle_input(isc_nmsocket_t *sock) {
goto failure;
}
if (atomic_load(&sock->client)) {
break;
}
if (pending == 0) {
break;
}