method
TLSSocket.terminate
Forcefully closes the socket connection immediately. This is an abrupt termination, unlike the graceful shutdown initiated by end(). It uses SO_LINGER with l_onoff=1 and l_linger=0 before calling close(2). Consider using close() or end() for graceful shutdowns.
In the handshake callback of a TLS 1.3 client, this refuses the server before the client certificate is sent.
socket.terminate();