IO.select returning arrays with nil elements
--------------------------------------------

                 Key: JRUBY-6071
                 URL: https://jira.codehaus.org/browse/JRUBY-6071
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.6.4
         Environment: Mac OS X 10.7.2
            Reporter: Eric Will


This is a hard one, because I can't reproduce it except with one of my apps 
that's already doing it.

In an app, I have a TCPSocket that connects to an IRC server. I'm also running 
a TCPServer to interface with the outside world to do some things. I have no 
threads, and a main loop that revolves around IO.select. My app gets to the 
point where select is being called with [[TCPServer, TCPSocketA], [TCPSocketA], 
[]]. The return I get is something that I don't think is supposed to happen, 
and looks like [[], [nil], []]. If I disable the TCPServer, everything works as 
expected.

The exact code I'm running is available at 
https://github.com/malkier/kythera/tree/jruby

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