diff options
author | Eric Wong <e@80x24.org> | 2013-10-19 23:43:59 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-10-20 00:09:04 +0000 |
commit | cd84e2ccbdf29b908c7d4711528d61bac05505bb (patch) | |
tree | 03e5cfd47e9a445094ccd559e2dd99095c0b422d /lib/yahns/config.rb | |
parent | d4805769eb3174d25b429fa1faf5392b2669f354 (diff) | |
download | yahns-cd84e2ccbdf29b908c7d4711528d61bac05505bb.tar.gz |
Leaving running threads at exit seems to lead to occasional bugs at finalization on Ruby 2.0.0. This could be a bug with sleepy_penguin or kgio, too, so I'll have to investigate further. For now, we'll just destroy the IOs associated with each queue and let the threads die on their own. This changes the QueueEgg internals a bit and I've removed the unit test for QueueEgg now since the rest of the server already works well (and QueueEgg internals may change even more). Queues/worker threads no longer have their own logger, it seems like excessive configurability/complexity since acceptors do not have their own logger, either. This logger only exists to log bugs in yahns, not the application, so using the server logger is sufficient.
Diffstat (limited to 'lib/yahns/config.rb')
-rw-r--r-- | lib/yahns/config.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/yahns/config.rb b/lib/yahns/config.rb index 61de74e..3f4bb90 100644 --- a/lib/yahns/config.rb +++ b/lib/yahns/config.rb @@ -343,7 +343,6 @@ class Yahns::Config # :nodoc: server.__send__("#{var}=", val) if val != :unset end queue(:default) if @qeggs.empty? - @qeggs.each_value { |qegg| qegg.logger ||= server.logger } @app_ctx.each { |app| app.logger ||= server.logger } end end |