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: AS33070 50.56.128.0/17 X-Spam-Status: No, score=1.7 required=3.0 tests=AWL,HK_RANDOM_FROM, MSGID_FROM_MTA_HEADER,RDNS_NONE 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: Re: EventMachine with thread pool and thread spawn Date: Fri, 23 Aug 2013 22:51:14 +0000 Message-ID: <20130823225114.GA5691@dcvr.yhbt.net> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1377298284 14088 80.91.229.3 (23 Aug 2013 22:51:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Aug 2013 22:51:24 +0000 (UTC) To: Rainbows! list Original-X-From: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Sat Aug 24 00:51:23 2013 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 In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) 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 X-Broken-Reverse-DNS: no host name found for IP address 50.56.192.79 Xref: news.gmane.org gmane.comp.lang.ruby.rainbows.general:521 Archived-At: Received: from [50.56.192.79] (helo=rubyforge.org) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VD0CR-00024c-Hp for gclrrg-rainbows-talk@m.gmane.org; Sat, 24 Aug 2013 00:51:23 +0200 Received: from localhost.localdomain (localhost [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 5BC982E193; Fri, 23 Aug 2013 22:51:23 +0000 (UTC) Received: from dcvr.yhbt.net (dcvr.yhbt.net [64.71.152.64]) by rubyforge.org (Postfix) with ESMTP id 3D0F72E17D for ; Fri, 23 Aug 2013 22:51:17 +0000 (UTC) Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id E93021F703; Fri, 23 Aug 2013 22:51:14 +0000 (UTC) "Lin Jen-Shin (godfat)" wrote: > This way, it might be easier for me to "rebase" on master. > However, I guess it might be time to give up this approach. > All tests passed except for t0106-rack-input-keepalive.sh, > but I don't find a good way to make it pass. > The key might be that pause/resume don't seem to work in > EventMachine? And using tempfile to buffer the request > might not be realistic. Yeah, t0106 is a tough one given the EM interface. Btw, has anybody sent a patch to the EM guys to allow this? (I don't do C++) > Another way would be... simply mark this model as not > suitable for large chunk pipelined requests. At least it seems > working fine on our production site. > > What do you think? That's probably fine. > Thanks for all your listening. > > (Maybe it's really time to move forward to celluloid-io, > not sure if I would get the chance to work on and finish it though..) Fwiw, nowadays my personal take these days is to avoid EM/libev*-style wrapper library unless they expose (or only have :P) a oneshot interface (EPOLLONESHOT/EV_ONESHOT). This is *especially* the case (for me) when mixing epoll/kqueue with threads. Standard event-triggered and level-triggered interfaces are both too confusing to me. Maybe it's just me, though :x _______________________________________________ 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