Forum: Ruby IO::Select and error_array

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
E4d8c6e0e9e5ca6ab51b4b1937586e6f?d=identicon&s=25 Christoffer Lernö (Guest)
on 2006-02-15 20: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.

/Christoffer
This topic is locked and can not be replied to.