gnutls_heartbeat_set_timeouts(3)
π NAME π
gnutls_heartbeat_set_timeouts β bestie, this is an API function and it lets you take control of the heartbeat timeouts π«Ά
β¨ SYNOPSIS β¨
#include <gnutls/gnutls.h>
void gnutls_heartbeat_set_timeouts(gnutls_session_t session, unsigned
int retrans_timeout, unsigned int total_timeout);
π ARGUMENTS π
gnutls_session_t sessionβ okay so this one is literally just agnutls_session_ttype. that's it, that's the vibe πunsigned int retrans_timeoutβ the time at which a retransmission will occur, measured in milliseconds. clock's ticking bestie β°unsigned int total_timeoutβ the time at which the connection will be aborted, in milliseconds. this is the final boss timer π₯
πΈ DESCRIPTION πΈ
so this function will override the timeouts for the DTLS heartbeat protocol. no cap, it just sets them.
the retransmission timeout is the time after which a message from the peer is not received, and the previous request will be retransmitted. so like β you waited, nobody answered, we're sending it again bestie π¨
the total timeout is the time after which the handshake will be aborted with GNUTLS_E_TIMEDOUT. that's the moment the whole thing gives up π and yes it's a whole named error and everything.
β SINCE β
3.1.2 β been here since way back, an icon honestly π
π¦ REPORTING BUGS π¦
found something sus? report bugs to <bugs@gnutls.org>.
home page: https://www.gnutls.org
π COPYRIGHT π
Copyright Β© 2001-2023 Free Software Foundation, Inc., and others.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. (yes you can share it, just keep the receipts π§Ύβ¨)
π SEE ALSO π
the full documentation for gnutls is maintained as a Texinfo manual. if the /usr/share/doc/gnutls/ directory does not contain the HTML form, visit
https://www.gnutls.org/manual/
lowkey obsessed with how short and sweet this page is. setting two millisecond numbers and dipping. main character energy fr fr π«Ά
okay that's the whole thing bestie, mwah π
β¨ β this was gnutls version 3.8.13, page gnutls_heartbeat_set_timeouts(3), and we are so done here. byeee πΈπ¦π
π¦ where this page comes from
- alpine 3.22: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.23: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.24: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- arch rolling: gnutls 3.8.13-3 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- ubuntu stonking: gnutls-doc 3.8.13-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms