Project

General

Profile

Bug #11481 » test.rb

Script which demonstrates the bug - t-8ch (Thomas Weißschuh), 08/24/2015 12:49 PM

 
require 'open-uri'
require 'timeout'

threads = []

(1..1000).each do
threads << Thread.new do
Timeout.timeout(0.2) do
open("http://169.254.169.254/latest/meta-data/")
end
end
end

threads.each { |thr| thr.join }
(2-2/3)