[MacRuby] #940: MacRuby should throw an exception when calls IO#read/write without status of READABLE/WRITABLE.
#940: MacRuby should throw an exception when calls IO#read/write without status of READABLE/WRITABLE. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Test Script: {{{ #!ruby require 'socket' sock = TCPServer.new(10000) sock.close_read begin sock.read rescue IOError => err p err end sock.close sock = TCPServer.new(10000) sock.close_write begin sock.write("xxxx") rescue IOError => err p err end }}} Result: {{{ $ ruby19 test_socket.rb #<IOError: not opened for reading> #<IOError: not opened for writing> $ macruby test_socket.rb /Users/watson/tmp/test_socket.rb:1:in `<main>': Socket is not connected - read() failed (Errno::ENOTCONN) MACO /Users/watson/tmp% }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/940> MacRuby <http://macruby.org/>
#940: MacRuby should throw an exception when calls IO#read/write without status of READABLE/WRITABLE. ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: minor | Milestone: MacRuby 0.8 Component: MacRuby | Resolution: fixed Keywords: | ----------------------------------+----------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.8 Comment: Should be fixed in r4590. -- Ticket URL: <http://www.macruby.org/trac/ticket/940#comment:1> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby