From: Jano Svitok Date: 2008-06-12T17:50:20+09:00 Subject: Re: Design question on threads. On Thu, Jun 12, 2008 at 09:44, Srijayanth Sridhar wrote: > the parser or the httpclient raises an exception and the thread dies. > I can set Thread.abort_on_exception to true. But I'd much rather that > the thread just restarts. More often than not these exceptions are not > cause enough for the thread to die. put your thread body in a while loop and catch the exceptions inside the loop. don't forget to provide a means to stop it def run while true begin rescue Exception end end end