From 9e0b0731edc6482f91db32748f0674a6ccd2378f Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 25 May 2014 06:27:14 +0000 Subject: * lib/webrick/utils.rb: Override the inspect method of the thread used in WEBrick::Utils::TimeoutHandler. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ lib/webrick/utils.rb | 3 +++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 549f15eaad..619eb1740a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sun May 25 15:26:17 2014 Tanaka Akira + + * 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 * test/openssl: Join threads. diff --git a/lib/webrick/utils.rb b/lib/webrick/utils.rb index b4a5546b11..4f43a5f1f8 100644 --- a/lib/webrick/utils.rb +++ b/lib/webrick/utils.rb @@ -156,6 +156,9 @@ module WEBrick 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| -- cgit v1.2.3