Feature #12085 » 0001-openssl-document-exception-false-for-_nonblock.patch
ext/openssl/lib/openssl/buffering.rb | ||
---|---|---|
# Note that one reason that read_nonblock writes to the underlying IO is
|
||
# when the peer requests a new TLS/SSL handshake. See openssl the FAQ for
|
||
# more details. http://www.openssl.org/support/faq.html
|
||
#
|
||
# By specifying `exception: false`, the options hash allows you to indicate
|
||
# that read_nonblock should not raise an IO::Wait*able exception, but
|
||
# return the symbol :wait_writable or :wait_readable instead.
|
||
def read_nonblock(maxlen, buf=nil, exception: true)
|
||
if maxlen == 0
|
||
... | ... | |
# Note that one reason that write_nonblock reads from the underlying IO
|
||
# is when the peer requests a new TLS/SSL handshake. See the openssl FAQ
|
||
# for more details. http://www.openssl.org/support/faq.html
|
||
#
|
||
# By specifying `exception: false`, the options hash allows you to indicate
|
||
# that write_nonblock should not raise an IO::Wait*able exception, but
|
||
# return the symbol :wait_writable or :wait_readable instead.
|
||
def write_nonblock(s, exception: true)
|
||
flush
|
||
-
|
- « Previous
- 1
- 2
- Next »