Project

General

Profile

Actions

Bug #10788

closed

Timeout not work with socket

Added by dashi6174 (邓 打师) about 9 years ago. Updated over 4 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 2.0.0p481 (2014-05-08) [x64-mingw32]
[ruby-core:67840]

Description

Timeout.timeout(1) do TCPSocket.new "33.2.2.1",333 end

The ip 33.2.2.1 is unreachable, I except it raise Timeout::Error, but
in fact it always raise Errno::ETIMEDOUT!

But I test it on Ubuntu14.04(ruby2.0), it's ok!

Actions

Also available in: Atom PDF

Like0
Like0Like0