From 09535c1bd412bd66f93723c2c1aa7aacc2e091c3 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 5 Oct 2009 20:16:18 -0700 Subject: Thread* models: cleanup timeout management Ensure we reset the per-thread time Thread.current[:t] with each connection so we don't timeout long-lived connections. --- lib/rainbows/thread_pool.rb | 1 - 1 file changed, 1 deletion(-) (limited to 'lib/rainbows/thread_pool.rb') diff --git a/lib/rainbows/thread_pool.rb b/lib/rainbows/thread_pool.rb index a6269cd..fc44cac 100644 --- a/lib/rainbows/thread_pool.rb +++ b/lib/rainbows/thread_pool.rb @@ -79,7 +79,6 @@ module Rainbows ret.first.each do |sock| begin process_client(sock.accept_nonblock) - thr[:t] = Time.now rescue Errno::EAGAIN, Errno::ECONNABORTED end end -- cgit v1.2.3-24-ge0c7