tls_handshake_cancel(9)
hiii bestie!! welcome to tls_handshake_cancel(9) from the Kernel API Manual π this one is short and iconic, so letβs get into it.
β¨ NAME β¨
tls_handshake_cancelβ cancel a pending handshake π
π SYNOPSIS π
bool tls_handshake_cancel (struct sock *sk );
π«Ά ARGUMENTS π«Ά
skβ socket on which there is an ongoing handshake π¦
π DESCRIPTION π
okay so the vibe is: request cancellation races with request completion π like, both things can be happening, and you need to know who won. To determine who won, callers examine the return value from this function. periodt.
Return values, bestie:
trueβ Uncompleted handshake request was canceled β¨falseβ Handshake request already completed or not found π
π CONTEXT π
May be called from process or softirq context. no cap π«Ά
π SEE ALSO π
Kernel file ./net/handshake/tlshd.c is the home base, and these linked besties are right here:
tls_handshake_done(9)tls_handshake_accept(9)tls_client_hello_anon(9)tls_client_hello_x509(9)tls_client_hello_psk(9)tls_server_hello_x509(9)tls_server_hello_psk(9)tls_handshake_close(9)
mwah π thatβs the whole page. source/version: ./net/handshake, date: October 2026 β catch u later, bestie! ππ¦
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms