require kgio 2.5 for kgio_wait_readable(timeout)
commit905f0ff393629ddb4d70e3dc221b016128c47415
authorEric Wong <normalperson@yhbt.net>
Tue, 28 Jun 2011 07:39:35 +0000 (28 07:39 +0000)
committerEric Wong <normalperson@yhbt.net>
Tue, 28 Jun 2011 07:39:35 +0000 (28 07:39 +0000)
treedd6689cac2e79d1b76b726a5c74c268d398d46cd
parent9684ed46e78dab1ae787fe135a3cec1c4490ddd6
require kgio 2.5 for kgio_wait_readable(timeout)

Since kgio_wait_*able in kgio 2.5 takes an optional timeout
argument, we no longer have to load the extra "io/wait" module.
This saves us a small amount of some memory and also removes the
extra ioctl(FIONREAD) syscall IO#wait enforces.

Like IO#wait in Ruby 1.9.3dev, kgio_wait_readable may use
ppoll() to wait on high-numbered file descriptors as efficiently
as it waits on low-numbered descriptors.
lib/rainbows/client.rb
lib/rainbows/fiber/coolio/methods.rb
lib/rainbows/fiber/io/methods.rb
rainbows.gemspec