IO.select is returning write array with nil elements
----------------------------------------------------

                 Key: JRUBY-5946
                 URL: https://jira.codehaus.org/browse/JRUBY-5946
             Project: JRuby
          Issue Type: Bug
         Environment: I, [2011-07-27T20:34:39.819000 #11234]  INFO -- :  
Running with  jruby 1.7.0.dev (ruby-1.8.7-p330) (2011-07-27 45f6408) (Java 
HotSpot(TM) Client VM 1.6.0_26) [linux-i386-java]  
            Reporter: Javier Alcazar
            Assignee: Thomas E Enebo



When using IO.select nonblocking I got the write array = [nil], this doesn't 
happen on MRI's implementation.
And according to documentation of IO.select this is not the expected behavior.


*********
When running the code below:

reads, writes, excepts = select(@reads, @writes, @sockets, timeout)
$stderr.print "Ouch!!!!! \n"    if writes == [nil]        

I got:

Ouch!!!!! 
E, [2011-07-27T20:37:07.113000 #11164] ERROR -- : asyncore writes undefined 
method `_handleWrite' for nil:NilClass



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