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: AS14383 205.234.109.0/24 X-Spam-Status: No, score=1.0 required=3.0 tests=AWL,HK_RANDOM_FROM, MSGID_FROM_MTA_HEADER shortcircuit=no autolearn=no version=3.3.2 Path: news.gmane.org!not-for-mail From: Eric Wong Newsgroups: gmane.comp.lang.ruby.rainbows.general Subject: updates in git://bogomips.org/rainbows.git Date: Fri, 20 May 2011 19:16:55 +0000 Message-ID: <20110520191655.GA11860@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 1305921184 3489 80.91.229.12 (20 May 2011 19:53:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 20 May 2011 19:53:04 +0000 (UTC) To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Original-X-From: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Fri May 20 21:52:59 2011 Return-path: Envelope-to: gclrrg-rainbows-talk@m.gmane.org X-Original-To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Delivered-To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-BeenThere: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Errors-To: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Xref: news.gmane.org gmane.comp.lang.ruby.rainbows.general:254 Archived-At: Received: from rubyforge.org ([205.234.109.19]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QNVkp-0004Hm-H6 for gclrrg-rainbows-talk@m.gmane.org; Fri, 20 May 2011 21:52:59 +0200 Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id E7492185838A; Fri, 20 May 2011 15:52:58 -0400 (EDT) Received: from dcvr.yhbt.net (dcvr.yhbt.net [64.71.152.64]) by rubyforge.org (Postfix) with ESMTP id 57D701858367 for ; Fri, 20 May 2011 15:16:56 -0400 (EDT) Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id D2E181F6AE; Fri, 20 May 2011 19:16:55 +0000 (UTC) == dropping keepalive clients on SIGQUIT For all concurrency models where we manage idle keepalive ourselves (anything using Cool.io or sleepy_penguin[1] epoll), SIGQUIT should drop idle clients immediately. These are some of the concurrency models where maintaining keepalive clients is cheapest. It would require more time/effort to get this working with EventMachine (since we just rely on set_comm_inactivity_timeout in EventMachine). Anybody really care about it? I noticed SIGQUIT was taking a long time to take effect with long keepalives while testing XEpoll somewhere... == Kgio.autopush support for Thread-based concurrency models I forgot to switch from IO#write to Kgio::SocketMethods#kgio_write. The latter is is needed to push pending frames if :tcp_nopush is true on a listen socket. This wasn't an issue for other concurrency models that already used kgio_write/kgio_trywrite. Most people don't use :tcp_nopush, so this doesn't concern them, but I was testing with :ThreadPool. Unconfirmed, but if you're serving HTTP/0.9 clients, this may still have adverse affect if you use sendfile/IO.copy_stream. I'll report back since there are probably Rainbows! users that depend heavily on HTTP/0.9 support :) I've not written tests for either of these improvements, but will do so before the 3.4.0 release. [1] http://bogomips.org/sleepy_penguin/ -- Eric Wong _______________________________________________ Rainbows! mailing list - rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org http://rubyforge.org/mailman/listinfo/rainbows-talk Do not quote signatures (like this one) or top post when replying