diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-10-18 18:27:28 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-10-18 18:27:28 +0000 |
commit | 2c5b5bb7a3bab2d6cacfa251afbef04f048472c2 (patch) | |
tree | 57b42e9f6699bdb7609c47d8707f271bea4df80e /lib/yahns/config.rb | |
parent | 3555fdce0c9cf9bb6860a79fdc6843a1e96c9888 (diff) | |
download | yahns-2c5b5bb7a3bab2d6cacfa251afbef04f048472c2.tar.gz |
We want to shutdown gracefully, but still relatively quickly (to make way for the new one). So we must disable persistent connections to prevent clients from keeping to-be-dead server alive indefinitely.
Diffstat (limited to 'lib/yahns/config.rb')
-rw-r--r-- | lib/yahns/config.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/yahns/config.rb b/lib/yahns/config.rb index d38c090..4861f3e 100644 --- a/lib/yahns/config.rb +++ b/lib/yahns/config.rb @@ -29,6 +29,10 @@ class Yahns::Config # :nodoc: raise ArgumentError, msg end + def postfork_cleanup + @app_ctx = @set = @qeggs = @app_instances = @config_file = nil + end + def config_reload! #:nodoc: # app_instance:app_ctx is a 1:N relationship @config_listeners = {} # name/address -> options |