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.5 required=5.0 tests=AWL,MSGID_FROM_MTA_HEADER, RP_MATCHES_RCVD shortcircuit=no autolearn=unavailable version=3.3.2 Path: news.gmane.org!not-for-mail From: Eric Wong Newsgroups: gmane.comp.lang.ruby.unicorn.general Subject: Re: USR2 + QUIT sometimes interrupts socket connections Date: Fri, 19 Aug 2011 17:11:08 -0700 Message-ID: <20110820001108.GA22342@dcvr.yhbt.net> References: <95034CB8-FFB2-4A77-A87F-E9DD47F36A11@gmail.com> 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 1313803515 19074 80.91.229.12 (20 Aug 2011 01:25:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 20 Aug 2011 01:25:15 +0000 (UTC) To: unicorn list Original-X-From: mongrel-unicorn-bounces@rubyforge.org Sat Aug 20 03:25:08 2011 Return-path: Envelope-to: gclrug-mongrel-unicorn@m.gmane.org X-Original-To: mongrel-unicorn@rubyforge.org Delivered-To: mongrel-unicorn@rubyforge.org Content-Disposition: inline In-Reply-To: <95034CB8-FFB2-4A77-A87F-E9DD47F36A11@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: mongrel-unicorn@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: mongrel-unicorn-bounces@rubyforge.org Errors-To: mongrel-unicorn-bounces@rubyforge.org Xref: news.gmane.org gmane.comp.lang.ruby.unicorn.general:1128 Archived-At: Received: from rubyforge.org ([205.234.109.19]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QuaJA-0000tp-00 for gclrug-mongrel-unicorn@m.gmane.org; Sat, 20 Aug 2011 03:25:08 +0200 Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 1AE6A1858346; Fri, 19 Aug 2011 21:25:07 -0400 (EDT) Received: from dcvr.yhbt.net (dcvr.yhbt.net [64.71.152.64]) by rubyforge.org (Postfix) with ESMTP id 1667D18581B2 for ; Fri, 19 Aug 2011 20:11:09 -0400 (EDT) Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 2392129681B; Sat, 20 Aug 2011 00:11:09 +0000 (UTC) cliftonk@gmail.com wrote: > On Aug 19, 2011, at 5:46 PM, Alex Sharp wrote: > > The exception message I get is: Mongo::ConnectionFailure: Failed to > > connect to host xxx.yyy.zzz.com and port 12345: Interrupted system > > call - connect(2) > > I've been experiencing the same issue in production with > fauna/memcached gem which is backed by the libmemcached C library. Unlike Mongo and Net::HTTP, the memcached gem doesn't use the standard Ruby socket library. Can you show us a backtrace (and probably Cc: Evan Weaver (fauna)) so we can get it fixed? Any process accepting signals can have system calls fail with EINTR, and buggy libraries don't handle it properly. The Ruby standard library is mostly good at gracefully handling EINTR, and I've gotten all instances I've encountered fixed in MRI 1.9.x. -- Eric Wong _______________________________________________ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote signatures (like this one) or top post when replying