gnutls_record_set_timeout(3)
π gnutls_record_set_timeout π
okay bestie, welcome to the gnutls manual page for gnutls_record_set_timeout β it's an API function, she's from the gnutls family, and she's here to control how long the record layer waits before it gives up. let's get into it π«Ά
β¨ SYNOPSIS β¨
#include <gnutls/gnutls.h>
void gnutls_record_set_timeout(gnutls_session_t session, unsigned int ms);
like, that's the whole vibe. two args, one function, no return value because she's void and she knows it π
π ARGUMENTS π
gnutls_session_t sessionβ bestie this is literally just agnutls_session_ttype. that's the whole description. she is what she is. iconic.unsigned int msβ the timeout value, measured in milliseconds. yes, milli. tiny little units. plan accordingly β±οΈ
πΈ DESCRIPTION πΈ
so what she actually does: this function sets the receive timeout for the record layer to whatever value you hand her. that's it, that's the job, and she does it flawlessly.
now here's the tea on the values π
- pass an
msvalue of zero to disable the timeout β and ngl, that's also the default, so if you do nothing you already live in the zero-timeout timeline. - or pass
GNUTLS_INDEFINITE_TIMEOUTto set an indefinite timeout. yes, indefinite. she will wait. forever. main character patience π§
β οΈ but listen β this function requires you to set a pull timeout callback. no callback, no party. see gnutls_transport_set_pull_timeout_function() for that, bestie, don't skip this step π
β SINCE β
3.1.7 β she's been around a minute, lowkey a legacy queen π
π REPORTING BUGS π
found a bug? don't be shy, report it 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.
(translation: share her, remix her, 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, then bestie, go visit:
https://www.gnutls.org/manual/
okay that's the whole page, you ate it, you understood it, periodt β¨ this was gnutls_record_set_timeout(3) from the gnutls manual, version 3.8.13 β mwah, go set some timeouts responsibly ππ¦π
π¦ 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