Re: timeout for "socket"?



ZB <zbREMOVE_THIS@xxxxxxxxxxxxxxxxxxxx> writes:

Im using "socket" for checking, if the site is "alive", just:

catch { socket $site 80 } err

...if "alive", then just "close $err" follows.

But I'm wondering, what about poor Internet connection case? Could be
possible to set longer timeout? How?
--
ZB

Have a look at the wiki for 'port scanning' - what you want to use is
a combination of [socket -async] and [after]

--
Pat Thoyts http://www.patthoyts.tk/
To reply, rot13 the return address or read the X-Address header.
PGP fingerprint 2C 6E 98 07 2C 59 C8 97 10 CE 11 E6 04 E0 B9 DD
.