ruby-changes:34028
From: akr <ko1@a...>
Date: Sun, 25 May 2014 15:27:21 +0900 (JST)
Subject: [ruby-changes:34028] akr:r46109 (trunk): * lib/webrick/utils.rb: Override the inspect method of the thread
akr 2014-05-25 15:27:14 +0900 (Sun, 25 May 2014) New Revision: 46109 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=46109 Log: * lib/webrick/utils.rb: Override the inspect method of the thread used in WEBrick::Utils::TimeoutHandler. Modified files: trunk/ChangeLog trunk/lib/webrick/utils.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 46108) +++ ChangeLog (revision 46109) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sun May 25 15:26:17 2014 Tanaka Akira <akr@f...> + + * lib/webrick/utils.rb: Override the inspect method of the thread + used in WEBrick::Utils::TimeoutHandler. + Sun May 25 14:22:30 2014 Tanaka Akira <akr@f...> * test/openssl: Join threads. Index: lib/webrick/utils.rb =================================================================== --- lib/webrick/utils.rb (revision 46108) +++ lib/webrick/utils.rb (revision 46109) @@ -156,6 +156,9 @@ module WEBrick https://github.com/ruby/ruby/blob/trunk/lib/webrick/utils.rb#L156 def initialize @timeout_info = Hash.new Thread.start{ + def (Thread.current).inspect + super.sub(/>\z/, ' (WEBrick::Utils::TimeoutHandler)>') + end while true now = Time.now @timeout_info.keys.each{|thread| -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/