TCPSocket#read blocks given zero when there's nothing to read
-------------------------------------------------------------

                 Key: JRUBY-6153
                 URL: https://jira.codehaus.org/browse/JRUBY-6153
             Project: JRuby
          Issue Type: Bug
          Components: Standard Library
    Affects Versions: JRuby 1.6.4, JRuby 1.6.3
         Environment: Mac OS X 10.6.8
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03-384-10M3425)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02-384, mixed mode)
            Reporter: John Hume
            Assignee: Thomas E Enebo


When there's nothing to read, TCPSocket#read blocks (indefinitely?) when passed 
zero. MRI returns an empty string immediately.

This causes https://github.com/thoughtbot/capybara-webkit to hang.

--
This message is automatically generated by JIRA.
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