aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--lib/webrick/utils.rb3
2 files changed, 8 insertions, 0 deletions
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 <akr@fsij.org>
+
+ * 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@fsij.org>
* 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|