gnutls_record_cork(3)
π
gnutls_record_cork(3) β the gnutls manual, bestie edition π
okay so welcome to the gnutls manual, page for gnutls_record_cork. pull up a chair, grab a strawberry π, we're learning about pausing your sends. it's giving backpressure. it's giving β¨controlβ¨.
πΈ NAME πΈ
gnutls_record_cork β literally just an API function, no cap.
β¨ SYNOPSIS β¨
#include <gnutls/gnutls.h>
void gnutls_record_cork(gnutls_session_t session);
π«Ά ARGUMENTS π«Ά
gnutls_session_t sessionβ bestie. it's agnutls_session_ttype. that's the whole vibe. that's the whole argument.
π DESCRIPTION π
so the way this works: if you call this, gnutls_record_send() will no longer send any records. periodt. π
any records you send just get cached instead, chilling in the buffer, waiting. they stay there until you call gnutls_record_uncork() and let them out. it's like holding your breath but for network packets π¦
ngl, important note: this function is safe to use with DTLS β but only after GnuTLS 3.3.0. so if you're on something older than that with DTLS, that's a no from me π
β SINCE β
3.1.9 β she's been iconic since 3.1.9, we've been obsessed.
π REPORTING BUGS π
found a bug? tell the devs, they wanna know fr fr:
- 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. (slay, that's the license, go forth and redistribute π)
π 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/
and that's the whole page, bestie π mwah. this was the gnutls manual, version 3.8.13, page gnutls_record_cork(3). go cork responsibly and drink some water πβ¨π¦
π¦ 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