[Ruby 1.9-Bug#3920][Open] WEBrick::HTTPServlet::ProcHandler が動かない

Bug #3920: WEBrick::HTTPServlet::ProcHandler e$B$,F0$+$J$$e(B
http://redmine.ruby-lang.org/issues/show/3920

e$B5/I<<Te(B: okkez _
e$B%9%F!<%?%9e(B: Open, e$BM%@hEYe(B: Normal
e$B%+%F%4%je(B: lib
ruby -v: ruby 1.9.2p14 (2010-10-02 revision 29393) [x86_64-linux]

e$B0J2<$N%Q%C%A$GD>$j$^$9$,!"%F%9%H$,I,MW$J$h$&$K;W$$$^$9!#e(B

Index: httpservlet/prochandler.rb

httpservlet/prochandler.rb (revision 29410)
+++ httpservlet/prochandler.rb (working copy)
@@ -14,11 +14,8 @@
module HTTPServlet

 class ProcHandler < AbstractServlet
  •  def get_instance(server, *options)
    
  •    self
    
  •  end
    
  •  def initialize(proc)
    
  •  def initialize(server, proc)
       @proc = proc
     end
    

e$B0J2<$N%9%/%j%W%H$GF0:n3NG$7$^$7$?!#e(B

require webrick
srv = WEBrick::HTTPServer.new({:DocumentRoot => .,
:BindAddress => 127.0.0.1,
:Port => 10080})
srv.mount(/proc, WEBrick::HTTPServlet::ProcHandler,
lambda{|request, response| response.body = Hello })
Signal.trap(:INT){ srv.shutdown }
srv.start

e$B%A%1%C%He(B #3920 e$B$,99?7$5$l$^$7$?!#e(B (by okkez _)

e$B$9$_$^$;$s!#e(B
WEBrick::HTTPServer#mount_proc e$B$r;H$&$s$G$9$M!#e(B
e$B%j%8%%/%H$7$F$/[email protected]$5$$!#e(B

http://redmine.ruby-lang.org/issues/show/3920

e$B%A%1%C%He(B #3920 e$B$,99?7$5$l$^$7$?!#e(B (by okkez _)

e$B$5$C$-IU$1$?E:IU%U%!%$%k$O%F%9%H$G$9!#e(B

http://redmine.ruby-lang.org/issues/show/3920

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs