unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
* behaviour with signal HUP
@ 2016-01-13  9:06 Francesco Savignago
  2016-01-13  9:21 ` Eric Wong
  0 siblings, 1 reply; 2+ messages in thread
From: Francesco Savignago @ 2016-01-13  9:06 UTC (permalink / raw)
  To: unicorn-public

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?
TIA for support


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: behaviour with signal HUP
  2016-01-13  9:06 behaviour with signal HUP Francesco Savignago
@ 2016-01-13  9:21 ` Eric Wong
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Wong @ 2016-01-13  9:21 UTC (permalink / raw)
  To: Francesco Savignago; +Cc: unicorn-public

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 :>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-01-13  9:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-13  9:06 behaviour with signal HUP Francesco Savignago
2016-01-13  9:21 ` Eric Wong

Code repositories for project(s) associated with this inbox:

	../../../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).