mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-25 20:04:05 -04:00
TLS stream: always handle send callbacks asynchronously
This commit ensures that send callbacks are always called from within the context of its worker thread even in the case of shuttigdown/inactive socket, just like TCP transport does and with which TLS attempts to be as compatible as possible.
This commit is contained in:
parent
ef659365ce
commit
2bfc079946
1 changed files with 0 additions and 5 deletions
|
|
@ -833,11 +833,6 @@ isc__nm_tls_send(isc_nmhandle_t *handle, const isc_region_t *region,
|
|||
|
||||
REQUIRE(sock->type == isc_nm_tlssocket);
|
||||
|
||||
if (inactive(sock)) {
|
||||
cb(handle, ISC_R_CANCELED, cbarg);
|
||||
return;
|
||||
}
|
||||
|
||||
uvreq = isc__nm_uvreq_get(sock->worker, sock);
|
||||
isc_nmhandle_attach(handle, &uvreq->handle);
|
||||
uvreq->cb.send = cb;
|
||||
|
|
|
|||
Loading…
Reference in a new issue