Skip to content

Commit

Permalink
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions core/src/main/java/org/jruby/ext/io/wait/IOWaitLibrary.java
Original file line number Diff line number Diff line change
@@ -120,12 +120,8 @@ public static IRubyObject wait_readable(ThreadContext context, IRubyObject _io,
}

if (fptr.readPending() != 0) return runtime.getTrue();
// TODO: better effort to get available bytes from our channel
// if (!FIONREAD_POSSIBLE_P(fptr->fd)) return Qfalse;
boolean ready = fptr.ready(runtime, context.getThread(), SelectionKey.OP_READ, tv);
fptr.checkClosed();
// if (ioctl(fptr->fd, FIONREAD, &n)) rb_sys_fail(0);
// if (n > 0) return io;
if (ready) return io;
return context.nil;
}

0 comments on commit 975dcc7

Please sign in to comment.