IO#read_nonblock is  broken
---------------------------

                 Key: JRUBY-2625
                 URL: http://jira.codehaus.org/browse/JRUBY-2625
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.1.2
         Environment: OS X 10.5
            Reporter: Kevin Ballard
            Assignee: Thomas E Enebo


IO#read_nonblock will block if asked to read more bytes than are available. In 
other words, it acts like IO#read.

Try executing the following code in ruby and jruby. Note that the ruby one 
works, the jruby one hangs:

rd, wr = IO.pipe; wr.puts("foo"); p rd.read_nonblock(5)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to