From 7cb6d7a2fead8b13bfed265b00a24f1af5f12ef1 Mon Sep 17 00:00:00 2001 From: gotoyuzo Date: Thu, 4 Jan 2007 08:32:37 +0000 Subject: * lib/webrick/utils.rb (WEBrick::Utils::TimeoutHandler#initialize): Arrays could not be modified in its each block. [ruby-dev:30063] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ lib/webrick/utils.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c9e71528ef..e24c14f5b5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Jan 4 17:28:05 2007 GOTOU Yuuzou + + * lib/webrick/utils.rb (WEBrick::Utils::TimeoutHandler#initialize): + Arrays could not be modified in its each block. [ruby-dev:30063] + Thu Jan 4 16:57:14 2007 Koichi Sasada * yarv_version.h : removed. diff --git a/lib/webrick/utils.rb b/lib/webrick/utils.rb index 3b250886db..654abb28b1 100644 --- a/lib/webrick/utils.rb +++ b/lib/webrick/utils.rb @@ -124,7 +124,7 @@ module WEBrick while true now = Time.now @timeout_info.each{|thread, ary| - ary.each{|info| + ary.dup.each{|info| time, exception = *info interrupt(thread, info.object_id, exception) if time < now } -- cgit v1.2.3