diff options
| author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-01-04 08:32:37 +0000 |
|---|---|---|
| committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-01-04 08:32:37 +0000 |
| commit | f22edb8ce3f8f95be2084ff09f1fe468e5b2c474 (patch) | |
| tree | 46a1a3290ac593e2df0a854913d2fe89ee6f7ff3 | |
| parent | 1978bb31625e9722b167bab77a471768cecc043a (diff) | |
| download | ruby-f22edb8ce3f8f95be2084ff09f1fe468e5b2c474.tar.gz ruby-f22edb8ce3f8f95be2084ff09f1fe468e5b2c474.tar.xz ruby-f22edb8ce3f8f95be2084ff09f1fe468e5b2c474.zip | |
* lib/webrick/utils.rb (WEBrick::Utils::TimeoutHandler#initialize):
Arrays could not be modified in its each block. [ruby-dev:30063]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | lib/webrick/utils.rb | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Thu Jan 4 17:28:05 2007 GOTOU Yuuzou <gotoyuzo@notwork.org> + + * 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 <ko1@atdot.net> * yarv_version.h : removed. diff --git a/lib/webrick/utils.rb b/lib/webrick/utils.rb index 3b250886d..654abb28b 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 } |
