Sortix cross-nightly manual
This manual documents Sortix cross-nightly. You can instead view this document in the latest official manual.
NAME
SSL_CTX_set_read_ahead, SSL_CTX_get_read_ahead, SSL_set_read_ahead, SSL_get_read_ahead, SSL_CTX_get_default_read_ahead — manage whether to read as many input bytes as possibleSYNOPSIS
#include <openssl/ssl.h>SSL_CTX_set_read_ahead(SSL_CTX *ctx, int yes);
SSL_CTX_get_read_ahead(SSL_CTX *ctx);
SSL_set_read_ahead(SSL *s, int yes);
SSL_get_read_ahead(const SSL *s);
SSL_CTX_get_default_read_ahead(SSL_CTX *ctx);
DESCRIPTION
SSL_CTX_set_read_ahead() and SSL_set_read_ahead() set whether as many input bytes as possible are read for non-blocking reads. For example if x bytes are currently required by OpenSSL, but y bytes are available from the underlying BIO (where y>
x), then OpenSSL will read all y bytes into its buffer (provided that the buffer is large enough) if reading ahead is on, or x bytes otherwise. The parameter yes should be 0 to ensure reading ahead is off, or non zero otherwise.