From 21a1a20223986af8c8962cafe2e0f1eae0dcfd19 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 6 May 2011 00:38:53 +0000 Subject: ensure some requires get loaded in master More sharing, faster startups, and most importantly, better error reporting if some things are missing. --- lib/rainbows.rb | 1 + lib/rainbows/xepoll_thread_spawn.rb | 3 +++ lib/rainbows/xepoll_thread_spawn/client.rb | 4 ---- 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) -- cgit v1.2.3-24-ge0c7