From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Status: No, score=-1.2 required=3.0 tests=AWL,BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,URIBL_BLOCKED shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: unicorn-public@bogomips.org Received: from mail-oi0-f47.google.com (mail-oi0-f47.google.com [209.85.218.47]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 81D001F8A0 for ; Sat, 11 Oct 2014 03:36:03 +0000 (UTC) Received: by mail-oi0-f47.google.com with SMTP id a141so8698378oig.34 for ; Fri, 10 Oct 2014 20:36:02 -0700 (PDT) X-Received: by 10.202.196.214 with SMTP id u205mr7829250oif.48.1412998562396; Fri, 10 Oct 2014 20:36:02 -0700 (PDT) MIME-Version: 1.0 Sender: brauliobo@gmail.com Received: by 10.202.68.11 with HTTP; Fri, 10 Oct 2014 20:35:22 -0700 (PDT) In-Reply-To: <20141009181533.GA8164@dcvr.yhbt.net> References: <5436C281.30309@whitepages.com> <20141009173420.GA2787@dcvr.yhbt.net> <20141009181533.GA8164@dcvr.yhbt.net> From: =?UTF-8?Q?Br=C3=A1ulio_Bhavamitra?= Date: Sat, 11 Oct 2014 00:35:22 -0300 X-Google-Sender-Auth: ESm0MJnIaxLLqUmd1IIAX7piYAY Message-ID: Subject: Re: Reserved workers not as webservers To: Eric Wong Cc: Devin Ben-Hur , Michael Fischer , unicorn-public Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: On Thu, Oct 9, 2014 at 3:15 PM, Eric Wong wrote: > Br=C3=A1ulio Bhavamitra wrote: >> Eric, how with a simple monkey patch will allow a worker to not >> connect with the kernel request queue? > > The listen socket is inherited by default. Closing it works. You can > also keep the socket open and avoid calling any accept() wrappers, that > is like a "pop" operation on the queue: > > kgio_tryaccept in unicorn, accept/accept_nonblock/sysaccept in stdlib Done. If you have free time, please take a look at https://gist.github.com/brauliobo/11298486#file-unicorn-conf-rb-L139 > > Also, please don't top-post (or send giant sigs). Thanks. Sorry for that (again)