Forum: Ruby IO::Select and error_array

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Christoffer Lernö (Guest)
on 2006-02-15 21:03
(Received via mailing list)
Hello everyone,

IO::Select works very well for me, but it still holds some mysteries
for me. In particular: when will I get it to return due to an error?

More to the point, let's say I have:

read, write, error = IO::Select([some_io], [some_io], [some_io])

When will I get "error" to be something other than an empty array? I
used it with sockets, and having the socket remotely closed
apparently did not help provoke it.

This topic is locked and can not be replied to.