about summary refs log tree commit homepage
path: root/lib/yahns.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/yahns.rb')
-rw-r--r--lib/yahns.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/yahns.rb b/lib/yahns.rb
index 373fca0..0499640 100644
--- a/lib/yahns.rb
+++ b/lib/yahns.rb
@@ -3,6 +3,13 @@
 require 'unicorn' # pulls in raindrops, kgio, fcntl, etc, stringio, and logger
 require 'sleepy_penguin'
 
+# kill off some unicorn internals we don't need
+# we'll probably just make kcar into a server parser so we don't depend
+# on unicorn at all
+[ :ClientShutdown, :Const, :SocketHelper, :StreamInput, :TeeInput,
+  :SSLConfigurator, :Configurator, :TmpIO, :Util, :Worker, :SSLServer,
+  :HttpServer ].each { |sym| Unicorn.__send__(:remove_const, sym) }
+
 # yahns exposes no user-visible API outside of the config file
 # Internals are subject to change.
 module Yahns # :nodoc: