From: Francis Cianfrocca Date: 2007-11-12T09:25:56+09:00 Subject: Re: Socket timeout ------=_Part_25512_7440545.1194827159346 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 11/11/07, Lee Jarvis wrote: > > I am using a TCPSocket and I want the script to restart if the > connection times out. I have tried doing it myself and searched around > everywhere for a solution but I have had no luck.. Any help would be > great What do you mean by "the connection times out"? Do you mean that the connection has no read or write activity for some interval of time? If you need to do that, then the Ruby/EventMachine library has that ability. You'll need to rearrange your code to go this route, so perhaps someone else will have a less invasive solution. If not, then look at EventMachine. ------=_Part_25512_7440545.1194827159346--