UNIXSocket#read without argument infinite loops when called on an EOF socket
----------------------------------------------------------------------------

                 Key: JRUBY-4275
                 URL: http://jira.codehaus.org/browse/JRUBY-4275
             Project: JRuby
          Issue Type: Bug
         Environment: OS X Snow Leopard
            Reporter: Hongli Lai
            Assignee: Thomas E Enebo
         Attachments: 
0002-Fix-a-bug-in-UNIXSocket-read-if-called-without-argum.patch

How to trigger the bug:

    a, b = UNIXSocket.pair
    a.write("hi")
    a.close
    puts "reading"
    p b.read   # Hangs here

This patch solves the problem. 
http://github.com/rubyspec/rubyspec/commit/e3735d59fd050a565abffa8f22020d4696f2fb07
 also triggers the bug.

-- 
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