1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2013-09-23 12:52:49 +00:00
parent 645257261e
commit e6fe59e96e

5
io.c
View file

@ -8565,8 +8565,9 @@ rb_io_advise(int argc, VALUE *argv, VALUE io)
* <code>write_nonblock</code> and <code>IO.select</code> as follows: * <code>write_nonblock</code> and <code>IO.select</code> as follows:
* IO::WaitReadable should also be rescued for SSL renegotiation in <code>OpenSSL::SSL::SSLSocket</code>. * IO::WaitReadable should also be rescued for SSL renegotiation in <code>OpenSSL::SSL::SSLSocket</code>.
* *
* while 0 < string.bytesize
* begin * begin
* result = io_like.write_nonblock(string) * written = io_like.write_nonblock(string)
* rescue IO::WaitReadable * rescue IO::WaitReadable
* IO.select([io_like]) * IO.select([io_like])
* retry * retry
@ -8574,6 +8575,8 @@ rb_io_advise(int argc, VALUE *argv, VALUE io)
* IO.select(nil, [io_like]) * IO.select(nil, [io_like])
* retry * retry
* end * end
* string = string.byteslice(written..-1)
* end
* *
* === Parameters * === Parameters
* read_array:: an array of <code>IO</code> objects that wait until ready for read * read_array:: an array of <code>IO</code> objects that wait until ready for read