# IO::Select and error\_array

**URL:** <https://www.ruby-forum.com/t/io-select-and-error-array/53873>\
**Category:** Ruby\
**Created:** [February 15, 2006, 8:03pm UTC](https://www.ruby-forum.com/t/io-select-and-error-array/53873 "2006-02-15T20:03:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christoffer\_LernSSS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/da6949/32.png) [@Christoffer\_LernSSS](https://www.ruby-forum.com/u/Christoffer_LernSSS)\
**Post date:** [February 15, 2006, 8:03pm UTC](https://www.ruby-forum.com/t/io-select-and-error-array/53873/1 "2006-02-15T20:03:15Z")

</div>

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
