Add wait time option and add handling for reddit_pool

This commit is contained in:
Omar Roth
2018-03-03 15:26:47 -06:00
parent 84c8fb9b99
commit 323d27a5f6
2 changed files with 20 additions and 4 deletions

View File

@@ -252,8 +252,8 @@ end
def make_client(url, context)
client = HTTP::Client.new(url, context)
client.read_timeout = 10.seconds
client.connect_timeout = 10.seconds
client.read_timeout = 30.seconds
client.connect_timeout = 30.seconds
return client
end