Hi all,

I am working on a script to open smtp port connection. Somehow, I get
problem to setup the timeout, my script just stuck for 5 or maybe 10 minutes
before come back. Does anybody know a way to setup a shorter timeout while
connecting, like 20 seconds? The following does not work for me. I am using
Redhat linux and Perl 5.004_05.

$socket = IO::Socket::INET->new(PeerAddr => "gateway.simgo.com", Proto
=>"tcp",PeerPort => 25,Type =>SOCK_STREAM, Timeout => 20)

Many thanks,
Jeff


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to