mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Merge branch 'tls-fix-readpaused-usage-v9-18' into 'v9_18'
[Backport v9.18] TLS: do not ignore readpaused flag in certain circumstances See merge request isc-projects/bind9!6629
This commit is contained in:
commit
4552658d1b
1 changed files with 10 additions and 5 deletions
|
|
@ -493,6 +493,13 @@ tls_do_bio(isc_nmsocket_t *sock, isc_region_t *received_data,
|
|||
if (sock->statichandle == NULL) {
|
||||
finish = true;
|
||||
break;
|
||||
} else if (atomic_load(&sock->readpaused)) {
|
||||
/*
|
||||
* Reading has been paused from withing
|
||||
* the context of read callback - stop
|
||||
* processing incoming data.
|
||||
*/
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -543,11 +550,9 @@ tls_do_bio(isc_nmsocket_t *sock, isc_region_t *received_data,
|
|||
}
|
||||
return;
|
||||
case SSL_ERROR_WANT_READ:
|
||||
if (tls_try_to_close_unused_socket(sock)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (sock->outerhandle == NULL) {
|
||||
if (tls_try_to_close_unused_socket(sock) ||
|
||||
sock->outerhandle == NULL || atomic_load(&sock->readpaused))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue