Randomly refresh HTTP clients

This commit is contained in:
Omar Roth 2018-01-19 18:51:57 +00:00
parent 61e3b47210
commit f77dcb7f9b

View File

@ -24,6 +24,9 @@ spawn do
id = Deque.new(50, "0xjKNDMgE54")
while true
client = get_client
if rand(30) > 1
client = HTTP::Client.new(URL, CONTEXT)
end
time = Time.now
begin