ruby-changes:41703
From: nobu <ko1@a...>
Date: Mon, 8 Feb 2016 14:09:42 +0900 (JST)
Subject: [ruby-changes:41703] nobu:r53777 (trunk): test_gem_remote_fetcher.rb: terminate watcher
nobu 2016-02-08 14:09:49 +0900 (Mon, 08 Feb 2016) New Revision: 53777 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53777 Log: test_gem_remote_fetcher.rb: terminate watcher * test/rubygems/test_gem_remote_fetcher.rb (stop_servers): terminate timeout watcher thread to fix thread leak. re-apply r53439. Modified files: trunk/test/rubygems/test_gem_remote_fetcher.rb Index: test/rubygems/test_gem_remote_fetcher.rb =================================================================== --- test/rubygems/test_gem_remote_fetcher.rb (revision 53776) +++ test/rubygems/test_gem_remote_fetcher.rb (revision 53777) @@ -924,6 +924,8 @@ PeIQQkFng2VVot/WAQbv3ePqWq07g1BBcwIBAg== https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_remote_fetcher.rb#L924 @ssl_server_thread.kill.join @ssl_server_thread = nil end + timeout = WEBrick::Utils::TimeoutHandler + timeout.terminate if defined?(timeout.terminate) end def normal_server_port -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/