Commit ad986044 authored by Artem Boldariev's avatar Artem Boldariev

fixup! TLS: cancleread support and numerous stability fixes

parent 5ef9fedf
Pipeline #61791 failed with stages
in 61 minutes and 28 seconds
......@@ -290,6 +290,15 @@ tls_do_bio(isc_nmsocket_t *sock) {
return;
}
if (rv != (int)req->uvbuf.len) {
if (!sock->tls.server &&
(sock->tls.state == TLS_HANDSHAKE || TLS_INIT)) {
isc_nmhandle_t *tlshandle =
isc__nmhandle_get(sock, NULL, NULL);
sock->connect_cb(tlshandle, result,
sock->connect_cbarg);
update_result(tlshandle->sock, result);
isc_nmhandle_detach(&tlshandle);
}
sock->tls.state = TLS_ERROR;
async_tls_do_bio(sock);
return;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment