unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: Eric Wong <e@80x24.org>
To: Francesco Savignago <francesco.savignago@develon.com>
Cc: unicorn-public@bogomips.org
Subject: Re: behaviour with signal HUP
Date: Wed, 13 Jan 2016 09:21:21 +0000	[thread overview]
Message-ID: <20160113092121.GA25450@dcvr.yhbt.net> (raw)
In-Reply-To: <85B1295D-D7D9-4E6A-A5D4-BA3A36D82E92@develon.com>

Francesco Savignago <francesco.savignago@develon.com> wrote:
> Hi unicorn.
> Asking a question about a thing that I am not able to test: does
> sending a HUP signal to unicorn results in connections being dropped
> or kept?

The connection is kept during any socket I/O and application processing.

unicorn doesn't handle persistent connections, though, so it'll always
drop the connection when its done writing the response.

You should be able to test and verify yourself by:

1) writing an intentionally slow endpoint in your app
2) starting a request to that slow endpoint
3) sending SIGHUP
4) the slow endpoint should finish
5) the workers will gracefully exit and restart

> TIA for support

No problem :>

      reply	other threads:[~2016-01-13  9:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-13  9:06 behaviour with signal HUP Francesco Savignago
2016-01-13  9:21 ` Eric Wong [this message]

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=20160113092121.GA25450@dcvr.yhbt.net \
    --to=e@80x24.org \
    --cc=francesco.savignago@develon.com \
    --cc=unicorn-public@bogomips.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).