Posted By: Eric Wong
Date: 2011-02-09 10:27
Summary: kgio 2.3.0 - MSG_PEEK and poll(2) support
Project: Rainbows!
kgio provides non-blocking I/O methods for Ruby without raising exceptions on EAGAIN and EINPROGRESS. It is intended for use with the Unicorn and Rainbows! Rack servers, but may be used by other applications.
* http://bogomips.org/kgio/ * kgio@librelist.org />* git://bogomips.org/kgio.git
Changes:
recv() with MSG_PEEK for sockets is added with the try* interface. SocketMethods#kgio_trypeek and SocketMethods#kgio_peek or Kgio.trypeek for non-Kgio-enabled sockets.
For Ruby 1.9 only: poll(2) is exposed via the Kgio.poll singleton method and should provide an alternative for IO.select users.
Both of these new features should work well on modern Unix-like operating systems. |
|