about summary refs log tree commit homepage
path: root/lib/rainbows.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-05-03 18:22:08 -0700
committerEric Wong <normalperson@yhbt.net>2010-05-03 18:22:59 -0700
commit96f06e8171a4145feca8c750011cdd1d84a7b948 (patch)
treeeedc7bd76f189a65b879068a600e6db76dc2c25b /lib/rainbows.rb
parent60c57382638c8be81fe6163d1728415c494ad4f8 (diff)
downloadrainbows-96f06e8171a4145feca8c750011cdd1d84a7b948.tar.gz
* avoid needless links to /Rainbows.html
* keepalive_timeout has been 5 seconds by default for a while
* update "Gemcutter" references to "RubyGems.org"
Diffstat (limited to 'lib/rainbows.rb')
-rw-r--r--lib/rainbows.rb6
1 files changed, 5 insertions, 1 deletions
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