[MacRuby] #1401: Errno::EAGAIN occurs with 'net/https'
#1401: Errno::EAGAIN occurs with 'net/https' ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ----------------------------------+----------------------------------------- Test Script: {{{ #!ruby require 'net/https' TCPServer.open("127.0.0.1", 0) {|serv| _, port, _, _ = serv.addr proxy = Net::HTTP.Proxy("127.0.0.1", port, 'user', 'password') http = proxy.new("foo.example.org", 8000) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE http.start } }}} Result: {{{ $ macruby t.rb /Users/watson/tmp/t.rb:10:in `block': Resource temporarily unavailable - read(2) failed. (Errno::EAGAIN) from /Users/watson/tmp/t.rb:3:in `<main>' }}} This error occurs with IO#sysread (on rbuf_fill) in 'net/protocol.rb'. [[BR]] IO#sysread is used for avoiding a #731. But, IO::WaitWritable already implemented with https://github.com/MacRuby/MacRuby/commit/98fe7b58b3b049d2ff12aca446f1f25e49... , https://github.com/MacRuby/MacRuby/commit/99397ec76adf77779c33216d1150e414ca... . I think it's time to revert a 'net/protocol.rb'. -- Ticket URL: <http://www.macruby.org/trac/ticket/1401> MacRuby <http://macruby.org/>
#1401: Errno::EAGAIN occurs with 'net/https' ----------------------------------+----------------------------------------- Reporter: watson1978@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: MacRuby 0.11 Component: MacRuby | Resolution: fixed Keywords: | ----------------------------------+----------------------------------------- Changes (by watson1978@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.11 Comment: Fixed with https://github.com/MacRuby/MacRuby/commit/a2e150dbe01383f8933262f38cea74e932... -- Ticket URL: <http://www.macruby.org/trac/ticket/1401#comment:1> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby