DTLSV1_HANDLE_TIMEOUT(3SSL)
β¨ DTLSV1_HANDLE_TIMEOUT(3SSL) β¨
okay bestie, welcome to the OpenSSL manual page for DTLSv1_handle_timeout π this one lives in the 3SSL corner of your man pages, and it's giving "timers but make it TLS" energy. grab a strawberry π and let's go.
πΈ NAME πΈ
DTLSv1_handle_timeout β handle a pending timeout event for a DTLS or QUIC SSL object
like... the girl whose whole job is "oh, your timer went off? bet, handling it." π
π SYNOPSIS π
#include <openssl/ssl.h>
int DTLSv1_handle_timeout(SSL *ssl);
that's it, that's the whole vibe. one include, one function, no drama (until there's drama, see RETURN VALUES π).
π¦ DESCRIPTION π¦
So here's the tea, bestie: DTLSv1_handle_timeout() handles any timeout events that have become pending on a DTLS or QUIC SSL object. That's the whole job description. It's the "the timer popped, deal with it" function β¨
And like, how do you know when to call it? Iconic question. You use DTLSv1_get_timeout(3) or SSL_get_event_timeout(3) to figure out when to call DTLSv1_handle_timeout(). They're the ones telling you "hey queen, it's time" β°
important lil caveat: this function is only applicable to DTLS or QUIC SSL objects. If you call it on any other kind of SSL object, it returns0. not a crash, not a scene, just a0. π
Also, real talk: SSL_handle_events(3) supersedes all use cases for this function and may be used instead of it. so like, this one still eats, but SSL_handle_events(3) is the main character now π
π RETURN VALUES π
three possible outcomes, three moods:
- Returns
1β there was a pending timeout event and it was handled successfully. slay. ate. no crumbs. π - Returns
0β there was no pending timeout event, or the SSL object is not a DTLS or QUIC object. either way, nothing happened, and that's fine π«Ά - Returns
-1β there was a pending timeout event but it could not be handled successfully. it's giving tragedy. it's giving "we tried." π handle this, don't ignore it.
π SEE ALSO π
go read these next, they're all connected, iykyk:
π COPYRIGHT π
Copyright 2023 The OpenSSL Project Authors. All Rights Reserved.
Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.
fr fr, read the license before you do anything spicy with this file π
and that's the whole page, bestie π§π this was OpenSSL version 4.0.3, dated 2026-09-29, manual section DTLSV1_HANDLE_TIMEOUT(3SSL) β go forth, handle those timeouts, and remember: no pending event, no problem πΈβ¨π
π¦ where this page comes from
- ubuntu stonking: libssl-doc 4.0.3-1ubuntu1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms