Subject: | Core::connect() doesn't respect Timeout |
When trying to connect to a non-existent service, the Timeout parameter is not respected, eg:
$i=IO::Socket::IP->new(
'KeepAlive' => 1,
'PeerHost' => '127.0.0.2',
'PeerPort' => 9200,
'Proto' => 'tcp',
'Timeout' => 2,
'Type' => 1
)
The above call hangs for about 30 seconds in perl 5.20.0 and 5.20.2, but previously would timeout after 2 seconds.