From 96f06e8171a4145feca8c750011cdd1d84a7b948 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 3 May 2010 18:22:08 -0700 Subject: doc: misc updates * avoid needless links to /Rainbows.html * keepalive_timeout has been 5 seconds by default for a while * update "Gemcutter" references to "RubyGems.org" --- lib/rainbows.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/rainbows.rb') diff --git a/lib/rainbows.rb b/lib/rainbows.rb index 3d1dc20..30b5fd5 100644 --- a/lib/rainbows.rb +++ b/lib/rainbows.rb @@ -22,8 +22,10 @@ module Rainbows false end end + # :stopdoc: G = State.new(true, 0, 0, 5) O = {} + # :startdoc: require 'rainbows/const' require 'rainbows/http_server' @@ -111,7 +113,7 @@ module Rainbows # +worker_processes+ * +worker_connections+, so in the above example # we can serve 8 * 400 = 3200 clients concurrently. # - # The default is +keepalive_timeout+ is 2 seconds, which should be + # The default is +keepalive_timeout+ is 5 seconds, which should be # enough under most conditions for browsers to render the page and # start retrieving extra elements for. Increasing this beyond 5 # seconds is not recommended. Zero disables keepalive entirely @@ -125,6 +127,7 @@ module Rainbows HttpServer.setup(block) end + # :stopdoc: # maps models to default worker counts, default worker count numbers are # pretty arbitrary and tuning them to your application and hardware is # highly recommended @@ -147,6 +150,7 @@ module Rainbows u = model.to_s.gsub(/([a-z0-9])([A-Z0-9])/) { "#{$1}_#{$2.downcase!}" } autoload model, "rainbows/#{u.downcase!}" end + # :startdoc: autoload :Fiber, 'rainbows/fiber' # core class end -- cgit v1.2.3-24-ge0c7