Problems? Is your data what you think it is? | |
PerlMonks |
Re^3: Perl Socket time out too smallby erroneousBollock (Curate) |
on Oct 24, 2007 at 08:01 UTC ( [id://646849]=note: print w/replies, xml ) | Need Help?? |
You normally wouldn't use IO::Socket directly. If you want a TCP socket, you'd use IO::Socket::INET which is a sub-class of IO::Socket. The constructor of IO::Socket::INET takes as parameters a "flattened hash" of arguments. Like so:
If you read the IO::Socket::INET documentation, you'll see that one of the options mentioned is called 'Timeout', and is likely the option you'll need to change. I'd imagine something like:
Is that easier to understand ? -David
In Section
Seekers of Perl Wisdom
|
|