[ruby-cvs:49837] tenderlove:r42695 (trunk): * io.c (io_read_nonblock): support non-blocking reads without raising

tenderlove at ruby-lang.org tenderlove at ruby-lang.org
Tue Aug 27 07:41:46 JST 2013


tenderlove	2013-08-27 07:41:44 +0900 (Tue, 27 Aug 2013)

  New Revision: 42695

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42695

  Log:
    * io.c (io_read_nonblock): support non-blocking reads without raising
      exceptions. As in: `io.read_nonblock(size, exception: false)`
      [ruby-core:38666] [Feature #5138]
    * ext/openssl/ossl_ssl.c (ossl_ssl_read_internal): ditto
    * ext/stringio/stringio.c (strio_sysread): ditto
    * io.c (rb_io_write_nonblock): support non-blocking writes without
      raising an exception.
    * ext/openssl/ossl_ssl.c (ossl_ssl_write_internal): ditto
    * test/openssl/test_pair.rb (class OpenSSL): tests
    * test/ruby/test_io.rb (class TestIO): ditto
    * test/socket/test_nonblock.rb (class TestSocketNonblock): ditto
    * test/stringio/test_stringio.rb (class TestStringIO): ditto

  Modified files:
    trunk/ChangeLog
    trunk/ext/openssl/lib/openssl/buffering.rb
    trunk/ext/openssl/ossl_ssl.c
    trunk/ext/stringio/stringio.c
    trunk/io.c
    trunk/test/openssl/test_pair.rb
    trunk/test/ruby/test_io.rb
    trunk/test/socket/test_nonblock.rb
    trunk/test/stringio/test_stringio.rb


More information about the ruby-cvs mailing list