JRuby

non-blocking IO does not function correctly: connect_nonblock followed by an IO.select