mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[DOC]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
645257261e
commit
e6fe59e96e
1 changed files with 11 additions and 8 deletions
19
io.c
19
io.c
|
@ -8565,14 +8565,17 @@ 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>.
|
||||||
*
|
*
|
||||||
* begin
|
* while 0 < string.bytesize
|
||||||
* result = io_like.write_nonblock(string)
|
* begin
|
||||||
* rescue IO::WaitReadable
|
* written = io_like.write_nonblock(string)
|
||||||
* IO.select([io_like])
|
* rescue IO::WaitReadable
|
||||||
* retry
|
* IO.select([io_like])
|
||||||
* rescue IO::WaitWritable
|
* retry
|
||||||
* IO.select(nil, [io_like])
|
* rescue IO::WaitWritable
|
||||||
* retry
|
* IO.select(nil, [io_like])
|
||||||
|
* retry
|
||||||
|
* end
|
||||||
|
* string = string.byteslice(written..-1)
|
||||||
* end
|
* end
|
||||||
*
|
*
|
||||||
* === Parameters
|
* === Parameters
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue