Call finish_connect directly on JRuby
Call finish_connect directly on JRuby

I've confirmed the socket is ready to be connected (i.e. the NIO
selector is selecting for OP_CONNECT) however for whatever reason
if I retry the original connect_nonblock, JRuby continues rethrowing
Errno::EINPROGRESS.

Two things will fix this:

1) Switching wait_readable to a Kernel.select. If I do this, JRuby
   throws Errno::EISCONN as expected, and all is well. Except that
   this would block the Celluloid::IO reactor and is therefore
   broken.

2) Manually calling finishConnect on the TCPSocket's underlying
   SocketChannel also completes connecting successfully. However this
   is what I would expect a repeat call to connect_nonblock to do for
   me.

Regardless, these hax get the tests passing on JRuby. Yay!

celluloid/framework