From 72a315441937f9e0531112f2b7080da39ca6064d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 30 Dec 2010 08:32:24 +0000 Subject: simplify per-client keepalive state checks This lets us simplify repetitive checks worry less about properly maintaining/closing client connections for each concurrency model we support. --- lib/rainbows.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/rainbows.rb') diff --git a/lib/rainbows.rb b/lib/rainbows.rb index a503bf0..643bdd2 100644 --- a/lib/rainbows.rb +++ b/lib/rainbows.rb @@ -19,6 +19,7 @@ module Rainbows def quit! self.alive = false + Rainbows::HttpParser.quit self.expire ||= Time.now + (server.timeout * 2.0) server.class.const_get(:LISTENERS).map! { |s| s.close rescue nil } false @@ -36,6 +37,7 @@ module Rainbows # :startdoc: require 'rainbows/const' + require 'rainbows/http_parser' require 'rainbows/http_server' require 'rainbows/response' require 'rainbows/client' -- cgit v1.2.3-24-ge0c7