about summary refs log tree commit homepage
path: root/lib/rainbows/base.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-11-18 00:08:52 -0800
committerEric Wong <normalperson@yhbt.net>2009-11-18 00:08:52 -0800
commit77f930cb64d32b3fac942b462cf4c7a04af730e3 (patch)
tree6612d92c7d3681f0701969db5060afd6c65c62e0 /lib/rainbows/base.rb
parent02245b9ea8a407ac67a9633119140fa2fd2c561e (diff)
downloadrainbows-77f930cb64d32b3fac942b462cf4c7a04af730e3.tar.gz
And change the default to 2 seconds, most clients can
render the page and load all URLs within 2 seconds.
Diffstat (limited to 'lib/rainbows/base.rb')
-rw-r--r--lib/rainbows/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/base.rb b/lib/rainbows/base.rb
index 62a7701..9a653ff 100644
--- a/lib/rainbows/base.rb
+++ b/lib/rainbows/base.rb
@@ -40,7 +40,7 @@ module Rainbows
 
       begin # loop
         while ! hp.headers(env, buf)
-          IO.select([client], nil, nil, 5) or return client.close
+          IO.select([client], nil, nil, G.kato) or return client.close
           buf << client.readpartial(CHUNK_SIZE)
         end