netmgr/tls: call tls_do_bio in resumeread

We might have some leftover data in bio buffer that we received
before pausing, we need to do tls_do_bio to make sure we call
the recv() callback on it.
This commit is contained in:
Witold Kręcicki
2020-08-31 11:12:41 -07:00
committed by Evan Hunt
parent 3b8e287994
commit 7c01178369
+1
View File
@@ -404,6 +404,7 @@ isc__nm_tls_pauseread(isc_nmsocket_t *sock) {
isc_result_t
isc__nm_tls_resumeread(isc_nmsocket_t *sock) {
atomic_store(&sock->readpaused, false);
tls_do_bio(sock, TLS_CHECK_RV);
return (ISC_R_SUCCESS);
}