unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: Eric Wong <normalperson@yhbt.net>
To: unicorn list <mongrel-unicorn@rubyforge.org>
Subject: Re: USR2 + QUIT sometimes interrupts socket connections
Date: Fri, 19 Aug 2011 17:11:08 -0700	[thread overview]
Message-ID: <20110820001108.GA22342@dcvr.yhbt.net> (raw)
In-Reply-To: <95034CB8-FFB2-4A77-A87F-E9DD47F36A11@gmail.com>

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


  reply	other threads:[~2011-08-20  1:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-19 22:46 USR2 + QUIT sometimes interrupts socket connections Alex Sharp
2011-08-19 23:47 ` Eric Wong
2011-08-20  0:04   ` Alex Sharp
2011-08-19 23:49 ` cliftonk
2011-08-20  0:11   ` Eric Wong [this message]
2011-08-20  7:37     ` Eric Wong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://yhbt.net/unicorn/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110820001108.GA22342@dcvr.yhbt.net \
    --to=normalperson@yhbt.net \
    --cc=mongrel-unicorn@rubyforge.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhbt.net/unicorn.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).