Project

General

Profile

Feature #12085 ยป 0001-openssl-document-exception-false-for-_nonblock.patch

normalperson (Eric Wong), 02/29/2016 01:11 PM

View differences:

ext/openssl/lib/openssl/buffering.rb
164 164
  # Note that one reason that read_nonblock writes to the underlying IO is
165 165
  # when the peer requests a new TLS/SSL handshake.  See openssl the FAQ for
166 166
  # more details.  http://www.openssl.org/support/faq.html
167
  #
168
  # By specifying `exception: false`, the options hash allows you to indicate
169
  # that read_nonblock should not raise an IO::Wait*able exception, but
170
  # return the symbol :wait_writable or :wait_readable instead.
167 171

  
168 172
  def read_nonblock(maxlen, buf=nil, exception: true)
169 173
    if maxlen == 0
......
373 377
  # Note that one reason that write_nonblock reads from the underlying IO
374 378
  # is when the peer requests a new TLS/SSL handshake.  See the openssl FAQ
375 379
  # for more details.  http://www.openssl.org/support/faq.html
380
  #
381
  # By specifying `exception: false`, the options hash allows you to indicate
382
  # that write_nonblock should not raise an IO::Wait*able exception, but
383
  # return the symbol :wait_writable or :wait_readable instead.
376 384

  
377 385
  def write_nonblock(s, exception: true)
378 386
    flush
379
-