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 a gnutls_session_t type. 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 Β© 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