From 42cc596402361eced511abe9d51f78fa54818895 Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 21 Sep 2013 07:52:02 +0000 Subject: [DOC] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- io.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/io.c b/io.c index 2af7edd63e..e23ba16ca0 100644 --- a/io.c +++ b/io.c @@ -8486,6 +8486,12 @@ rb_io_advise(int argc, VALUE *argv, VALUE io) * if optional timeout value is given and no IO object * is ready in timeout seconds. * + * IO.select peeks the buffer of IO objects for testing readability. + * If the IO buffer is not empty, + * IO.select immediately notify readability. + * This "peek" is only happen for IO objects. + * It is not happen for IO-like objects such as OpenSSL::SSL::SSLSocket. + * * The best way to use IO.select is invoking it * after nonblocking methods such as read_nonblock. * The methods raises an exception which is extended by -- cgit v1.2.3