From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS6939 64.71.128.0/18 X-Spam-Status: No, score=-2.4 required=3.0 tests=AWL,BAYES_00, MSGID_FROM_MTA_HEADER,URIBL_BLOCKED shortcircuit=no autolearn=unavailable version=3.3.2 Path: news.gmane.org!not-for-mail From: Eric Wong Newsgroups: gmane.comp.lang.ruby.kgio.general Subject: [ANN] kgio 2.3.0 - MSG_PEEK and poll(2) support Date: Wed, 9 Feb 2011 10:30:17 +0000 Message-ID: <20110209103017.GA12524@dcvr.yhbt.net> References: <20110209103017.GA12524@dcvr.yhbt.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1297247439 15545 80.91.229.12 (9 Feb 2011 10:30:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 9 Feb 2011 10:30:39 +0000 (UTC) To: kgio@librelist.org Original-X-From: kgio@librelist.org Wed Feb 09 11:30:30 2011 Return-path: Envelope-to: gclrkg-kgio@m.gmane.org In-Reply-To: <20110209103017.GA12524@dcvr.yhbt.net> List-Archive: List-Help: List-Id: List-Post: List-Subscribe: List-Unsubscribe: Precedence: list Original-Sender: kgio@librelist.org Xref: news.gmane.org gmane.comp.lang.ruby.kgio.general:8 Archived-At: Received: from zedshaw.xen.prgmr.com ([64.71.167.205]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pn7Jd-0006Y0-0D for gclrkg-kgio@m.gmane.org; Wed, 09 Feb 2011 11:30:29 +0100 Received: from zedshaw.xen.prgmr.com (localhost [IPv6:::1]) by zedshaw.xen.prgmr.com (Postfix) with ESMTP id C165221C6E0 for ; Wed, 9 Feb 2011 10:30:24 +0000 (UTC) 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. -- Eric Wong