gnutls_record_set_max_recv_size(3)
π gnutls_record_set_max_recv_size(3) π
okay bestie, welcome to the gnutls manual page for gnutls_record_set_max_recv_size β yes that's a whole mouthful, we're gonna get through it together π«Ά
β¨ NAME β¨
gnutls_record_set_max_recv_size β it's an API function, bestie, that's the whole vibe π
πΈ SYNOPSIS πΈ
#include <gnutls/gnutls.h>
ssize_t gnutls_record_set_max_recv_size(gnutls_session_t session, size_t
size);
π ARGUMENTS π
gnutls_session_t sessionβ it's agnutls_session_ttype, which is giving "the session, obviously" energy β¨size_t sizeβ the new size, that's it, that's the girl πΈ
π¦ DESCRIPTION π¦
okay so what this function DOES: it sets the maximum amount of plaintext received in a record on this connection. literally that's the whole job, no cap π
and here's the tea β the limit is also negotiated through a TLS extension called 'record size limit'. so it's not just you deciding, it's a whole conversation π. but lowkey important caveat: while the 'record size limit' extension is preferred, not all TLS implementations use it or even understand it. so some servers are just out here not knowing what's being asked of them, and that's on them, not you π
β RETURNS β
On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error code is returned. so if you get a negative number, that's your sign bestie, go check it π€
π SINCE π
3.6.8 β vintage, but not like, vintage vintage π
π REPORTING BUGS π
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.
π 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, periodt π
β¨ this was gnutls version 3.8.13, page gnutls_record_set_max_recv_size(3) β slay, go set some record sizes responsibly bestie ππ¦
π¦ 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