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=0.0 required=3.0 tests=MSGID_FROM_MTA_HEADER shortcircuit=no autolearn=unavailable version=3.3.2 Path: news.gmane.org!not-for-mail From: James Tucker Newsgroups: gmane.comp.lang.ruby.rainbows.general Subject: Re: synchronous controllers taking 6 seconds in Eventmachine config Date: Wed, 15 Sep 2010 16:30:28 -0300 Message-ID: <97F7A036-4DA6-4CF3-B842-5870F7DE59E7@gmail.com> References: <2B157204-E5C6-4F5D-98A9-E2A79F9F9765@christophsturm.com> <20100915185007.GA13709@dcvr.yhbt.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1284581015 23524 80.91.229.12 (15 Sep 2010 20:03:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 15 Sep 2010 20:03:35 +0000 (UTC) To: Rainbows! list Original-X-From: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Wed Sep 15 22:03:34 2010 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:content-type:mime-version :subject:from:in-reply-to:date:content-transfer-encoding:message-id :references:to:x-mailer; bh=AzSv9I/6d6BvztrfCu66X/pUXCrl3eCPctx3QGOnhkU=; b=sko7BPw6/WwPp50aeE4yHZyrEWnxZSHy7DFc4pyYJGc2MAXGUgIec46bd+t4KmvX/5 e1aWMKBjt363BmjgpN5g20acxuQ2o6HdAuR0eFTUm2U5zlz/V/yen2O4iWHm0yBnuk7o XsB3ROolK9zhBYQXBcK+xpARmz4lltncTEnLw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=pBVb6BDMIhsCH0J39KliwQfe5UpPWNnsGF4Hc8V5VTw3jWqyhEir8aqBzvZ27di9Xo XWOaR+zY44ioofc58vWcxd8+OC9TJzUCKIErLgHhizOtKmRedX98jsOtPCqEJqjtEyVQ WhbrDqRmFYVwiI9zR8M46kiXN9aYLNZG/UALc= In-Reply-To: <20100915185007.GA13709-yBiyF41qdooeIZ0/mPfg9Q@public.gmane.org> X-Mailer: Apple Mail (2.1081) 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:131 Archived-At: Received: from rubyforge.org ([205.234.109.19]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OvyCb-0005Vr-3G for gclrrg-rainbows-talk@m.gmane.org; Wed, 15 Sep 2010 22:03:33 +0200 Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 8C91F185836B for ; Wed, 15 Sep 2010 16:03:32 -0400 (EDT) Received: from mail-qw0-f50.google.com (mail-qw0-f50.google.com [209.85.216.50]) by rubyforge.org (Postfix) with ESMTP id 05FD11858367 for ; Wed, 15 Sep 2010 15:30:41 -0400 (EDT) Received: by qwb7 with SMTP id 7so575986qwb.23 for ; Wed, 15 Sep 2010 12:30:41 -0700 (PDT) Received: by 10.229.184.68 with SMTP id cj4mr1593453qcb.48.1284579032951; Wed, 15 Sep 2010 12:30:32 -0700 (PDT) Received: from [192.168.101.2] ([199.172.230.17]) by mx.google.com with ESMTPS id t18sm1754545qco.20.2010.09.15.12.30.31 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 15 Sep 2010 12:30:32 -0700 (PDT) Eric, you don't do actual keepalive do you, or am i thinking of unicorn? If the request is sync, then you can close connection after body.each returns, else you need to use the deferrable api callback in deferrable bodies wiht the async api. _______________________________________________ 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