|
|
@ -21,9 +21,12 @@ end
|
|
|
|
# Refresh all the connections in the pool by crawling recommended
|
|
|
|
# Refresh all the connections in the pool by crawling recommended
|
|
|
|
spawn do
|
|
|
|
spawn do
|
|
|
|
# Arbitrary start value
|
|
|
|
# Arbitrary start value
|
|
|
|
id = Deque.new(50,"0xjKNDMgE54")
|
|
|
|
id = Deque.new(50, "0xjKNDMgE54")
|
|
|
|
while true
|
|
|
|
while true
|
|
|
|
client = get_client
|
|
|
|
client = get_client
|
|
|
|
|
|
|
|
if rand(30) > 1
|
|
|
|
|
|
|
|
client = HTTP::Client.new(URL, CONTEXT)
|
|
|
|
|
|
|
|
end
|
|
|
|
time = Time.now
|
|
|
|
time = Time.now
|
|
|
|
|
|
|
|
|
|
|
|
begin
|
|
|
|
begin
|
|
|
|