unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / 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, back to index

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

unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help

Archives are clonable:
	git clone --mirror https://bogomips.org/unicorn-public
	git clone --mirror http://ou63pmih66umazou.onion/unicorn-public

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.lang.ruby.unicorn
	nntp://ou63pmih66umazou.onion/inbox.comp.lang.ruby.unicorn

 note: .onion URLs require Tor: https://www.torproject.org/

AGPL code for this site: git clone https://public-inbox.org/ public-inbox