From: snacktime Date: 2006-08-31T05:25:50+09:00 Subject: Re: Checking for Network Connection I'm sure there is a timeout option for the socket call, or you could just do something like this: require 'timeout' timeout(10) do # connect end On 8/30/06, Matt Todd wrote: > Thanks... that was also a solution I had thought about, but couldn't > really manifest with my limited experience. > > I'm not exactly sure how to do a timeout loop... or, rather, what you > mean. Do you want me to try three times? Or perhaps to say "timeout > after this amount of time"? Is that part of TCPSocket#new ? > > :D > > M.T. > >