Re: Checking for Network Connection
- From: snacktime <snacktime@xxxxxxxxx>
- Date: Thu, 31 Aug 2006 05:25:50 +0900
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 <chiology@xxxxxxxxx> 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.
.
- Follow-Ups:
- Re: Checking for Network Connection
- From: Matt Todd
- Re: Checking for Network Connection
- References:
- Re: Checking for Network Connection
- From: Francis Cianfrocca
- Re: Checking for Network Connection
- From: Matt Todd
- Re: Checking for Network Connection
- Prev by Date: Re: encryption library
- Next by Date: Re: Obtaining a reference to an enclosing class of a nested class
- Previous by thread: Re: Checking for Network Connection
- Next by thread: Re: Checking for Network Connection
- Index(es):
Relevant Pages
|