about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-05-06 00:38:53 +0000
committerEric Wong <normalperson@yhbt.net>2011-05-06 00:38:53 +0000
commit21a1a20223986af8c8962cafe2e0f1eae0dcfd19 (patch)
tree70634b9eded59c078befa7b875df81cb2bcb34a7
parent0efe7b677b076a32ef54e5f2f0a9861eb1f7f3d9 (diff)
downloadrainbows-21a1a20223986af8c8962cafe2e0f1eae0dcfd19.tar.gz
More sharing, faster startups, and most importantly,
better error reporting if some things are missing.
-rw-r--r--lib/rainbows.rb1
-rw-r--r--lib/rainbows/xepoll_thread_spawn.rb3
-rw-r--r--lib/rainbows/xepoll_thread_spawn/client.rb4
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/rainbows.rb b/lib/rainbows.rb
index f731a6a..395ce13 100644
--- a/lib/rainbows.rb
+++ b/lib/rainbows.rb
@@ -1,6 +1,7 @@
 # -*- encoding: binary -*-
 require 'kgio'
 require 'unicorn'
+require 'io/wait'
 Unicorn::SocketHelper::DEFAULTS.merge!({
   # the value passed to TCP_DEFER_ACCEPT actually matters in Linux 2.6.32+
   :tcp_defer_accept => 60,
diff --git a/lib/rainbows/xepoll_thread_spawn.rb b/lib/rainbows/xepoll_thread_spawn.rb
index 6e6ec5b..ad2bdc4 100644
--- a/lib/rainbows/xepoll_thread_spawn.rb
+++ b/lib/rainbows/xepoll_thread_spawn.rb
@@ -1,4 +1,7 @@
 # -*- encoding: binary -*-
+require "thread"
+require "sleepy_penguin"
+require "raindrops"
 
 module Rainbows::XEpollThreadSpawn
   include Rainbows::Base
diff --git a/lib/rainbows/xepoll_thread_spawn/client.rb b/lib/rainbows/xepoll_thread_spawn/client.rb
index 4111f27..7e02f82 100644
--- a/lib/rainbows/xepoll_thread_spawn/client.rb
+++ b/lib/rainbows/xepoll_thread_spawn/client.rb
@@ -1,8 +1,4 @@
 # -*- encoding: binary -*-
-require "thread"
-require "sleepy_penguin"
-require "raindrops"
-
 module Rainbows::XEpollThreadSpawn::Client
   HBUFSIZ = Rainbows.client_header_buffer_size
   N = Raindrops.new(1)