RubyIO#select puts connectable sockets in the read set instead of write set ---------------------------------------------------------------------------
Key: JRUBY-4605 URL: http://jira.codehaus.org/browse/JRUBY-4605 Project: JRuby Issue Type: Bug Affects Versions: JRuby 1.5 Reporter: Wayne Meissner Assignee: Thomas E Enebo Priority: Trivial Perusing RubyIO.select_static(), it puts sockets that have OP_CONNECT set in their SelectionKey#readyOps() flags into the read set instead of the write set as one would expect. This is probably not a user-visible bug, since OP_CONNECT is never registered in the interest ops for any write channels, so it should never be set in the ready ops. Technically OP_CONNECT probably should be set in the interest ops for IO objects in the write set, but since any socket that connects is also writable, it works as it is anyway. Just documenting for future reference. -- 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