From: nobu.nokada@... Date: 2002-06-21T12:15:39+09:00 Subject: Re: resolv.rb memory usage / core dumps Hi, At Fri, 21 Jun 2002 07:37:47 +0900, Brad Hilton wrote: > In using resolv.rb (ruby 1.6.7) to do name lookups, I noticed that the > classes UnconnectedUDP and ConnectedUDP create a new thread in > ititialize(). They don't attempt to clean up the thread (or join() it), > however, so the following script eats up lots of memory and eventually > stalls: Refer the thread from [ruby-talk:38525]. > ------------------- > loop { > Resolv::DNS::Requester::UnconnectedUDP.new.cleanup > } > ------------------- > > after a few hundred objects get created, the script core dumps. I couldn't reproduce it in 100,000 iterations, with latest 1.6.7 and CVS head. -- Nobu Nakada