From 77f930cb64d32b3fac942b462cf4c7a04af730e3 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 18 Nov 2009 00:08:52 -0800 Subject: make keepalive_timeout configurable And change the default to 2 seconds, most clients can render the page and load all URLs within 2 seconds. --- lib/rainbows/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rainbows/base.rb') 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 -- cgit v1.2.3-24-ge0c7