handshake_req_cancel(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… handshake_req_cancel(9) πŸ’…

okay so this is a Kernel API Manual page, and the function is handshake_req_cancel() β€” say it with me, bestie πŸ’–

✨ NAME ✨

handshake_req_cancel β€” cancel an in-progress handshake. literally what it says on the tin 🫢

🌸 SYNOPSIS 🌸

bool handshake_req_cancel (struct sock *sk );

πŸŽ€ ARGUMENTS πŸŽ€

  • sk β€” the socket on which there is an ongoing handshake. that’s the target, no cap πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

So here’s the tea: request cancellation races with request completion. 😭 like, both things can be happening at the same time, and you don’t get to just assume who got there first. To determine who won, callers examine the return value from this function. that’s the vibe check right there ✨

Return values:

  • true β€” an uncompleted handshake request was canceled. slay, it got canceled before it finished πŸ’–
  • false β€” the handshake request was already completed, or it was not found. so either it already finished, or it’s just not there πŸ’€

🌈 SEE ALSO 🌈

like, go read the friends, iykyk πŸ“šπŸ’–


mwah πŸ’‹ this page lives in ./net/handshake, dated October 2026, and the title is still handshake_req_cancel(9) β€” periodt πŸŽ€

πŸ“¦ where this page comes from