From: Brian Candler Date: 2003-04-24T00:20:43+09:00 Subject: Re: Select() On Thu, Apr 24, 2003 at 12:09:55AM +0900, Bill Kelly wrote: > Bjorn Stahl posted a nice threaded TCPServer example at > http://www.ruby-talk.com/59018 There's a simpler example within this page: http://www.rubygarden.org/ruby?SingletonTutorial (towards the end of section 2) although it doesn't include the concurrency limit. I don't think you should need to use 'select' when writing a threaded server. If you want a timeout, it's simpler to do: require 'timeout' status = timeout(5) do # something which may take time end Cheers, Brian.