1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

io.c: fix typo and phrase [ci skip]

[Fix GH-1872]

From: Leon M. George <leon@georgemail.eu>

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2018-05-12 01:26:39 +00:00
parent 610c6ba5d2
commit 23666ac1c1

4
io.c
View file

@ -9310,7 +9310,7 @@ rb_io_advise(int argc, VALUE *argv, VALUE io)
* So, the remote side of SSL sends a partial record,
* <code>IO.select</code> notifies readability but
* <code>OpenSSL::SSL::SSLSocket</code> cannot decrypt a byte and
* <code>OpenSSL::SSL::SSLSocket#readpartial</code> will blocks.
* <code>OpenSSL::SSL::SSLSocket#readpartial</code> will block.
*
* Also, the remote side can request SSL renegotiation which forces
* the local SSL engine to write some data.
@ -9333,7 +9333,7 @@ rb_io_advise(int argc, VALUE *argv, VALUE io)
* However it is not the best way to use <code>IO.select</code>.
*
* The writability notified by select(2) doesn't show
* how many bytes writable.
* how many bytes are writable.
* <code>IO#write</code> method blocks until given whole string is written.
* So, <code>IO#write(two or more bytes)</code> can block after writability is notified by <code>IO.select</code>.
* <code>IO#write_nonblock</code> is required to avoid the blocking.