Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
OpenSSL::SSL::SSLSocket#sysread_nonblock
ssl.sysread_nonblock(length) => string
ssl.sysread_nonblock(length, buffer) => buffer
ssl.sysread_nonblock(length[, buffer [, opts]) => buffer
ext/openssl/ossl_ssl.c
View on GitHub ↗
static VALUE
ossl_ssl_read_nonblock(int argc, VALUE *argv, VALUE self)
{
return ossl_ssl_read_internal(argc, argv, self, 1);
}
A non-blocking version of sysread. Raises an SSLError if reading would block. If “exception: false” is passed, this method returns a symbol of :wait_readable, :wait_writable, or nil, rather than raising an exception.
Reads length bytes from the SSL connection. If a pre-allocated buffer is provided the data will be written into it.