From 5854d622a35316d8ddf8ad7eb88d11bae23e00c7 Mon Sep 17 00:00:00 2001 From: Jesse Dijkstra Date: Wed, 13 Dec 2017 10:54:42 +0100 Subject: [PATCH 1/2] Retry connection --- lib/hound/session.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hound/session.ex b/lib/hound/session.ex index 7bf24fe..c8d51d1 100644 --- a/lib/hound/session.ex +++ b/lib/hound/session.ex @@ -26,7 +26,7 @@ defmodule Hound.Session do } # No retries for this request - make_req(:post, "session", params) + make_req(:post, "session", params, %{}, 5) end @doc "Make capabilities for session" From ae00fb2835f41b7610a329b180e9431e480eafa1 Mon Sep 17 00:00:00 2001 From: Jesse Dijkstra Date: Wed, 13 Dec 2017 13:34:56 +0100 Subject: [PATCH 2/2] Reduce retries to 3 --- lib/hound/session.ex | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/hound/session.ex b/lib/hound/session.ex index c8d51d1..e7c68b0 100644 --- a/lib/hound/session.ex +++ b/lib/hound/session.ex @@ -25,8 +25,7 @@ defmodule Hound.Session do desiredCapabilities: capabilities } - # No retries for this request - make_req(:post, "session", params, %{}, 5) + make_req(:post, "session", params, %{}, 3) end @doc "Make capabilities for session"