On Thu, Jun 12, 2008 at 09:44, Srijayanth Sridhar <srijayanth / gmail.com> 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
      <here comes your code>
    rescue Exception
    end
  end
end