Wrong monitor handling in o.j.util.ChannelStream.read
-----------------------------------------------------

                 Key: JRUBY-2063
                 URL: http://jira.codehaus.org/browse/JRUBY-2063
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.1
            Reporter: Martin Krauskopf
            Assignee: Thomas E Enebo


Hi I'm encountering a problem with the code in the debugger. The scenario 
bellow[1] always (practically) deadlocks when running under JRuby(latest 
trunk), since server_socket.gets and server_socket.puts uses the same monitor. 
The monitor is first acquired by blocking .gets so .puts does not have chance 
to acquire it and send message to the client which would in turn releases the 
.gets in server -> deadlock.

See [the thread on [EMAIL 
PROTECTED]|http://archive.jruby.codehaus.org/dev/47A608EB.1010708%40sun.com] 
for detailed info.

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