From: Kuros Date: 2003-04-24T01:02:37+09:00 Subject: Re: Select() Thank you all very much. Kuros ----- Original Message ----- From: "Brian Candler" To: "ruby-talk ML" Sent: Wednesday, April 23, 2003 10:20 AM 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. >