From 5e40ced81a3f290c18550b420a4cf136614f7152 Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Fri, 23 Aug 2019 09:12:46 -0400 Subject: [PATCH] Increase EPP client timeout Fixes #22 --- apps/epp_proxy/src/epp_http_client.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/epp_proxy/src/epp_http_client.erl b/apps/epp_proxy/src/epp_http_client.erl index 91c5ff0..ae69d02 100644 --- a/apps/epp_proxy/src/epp_http_client.erl +++ b/apps/epp_proxy/src/epp_http_client.erl @@ -85,7 +85,7 @@ request_from_map(#{command := Command, hackney_options(Cookies) -> case application:get_env(epp_proxy, insecure) of false -> [{cookie, Cookies}, insecure]; - _ -> [{cookie, Cookies}] + _ -> [{cookie, Cookies}, {connect_timeout, 120000}, {recv_timeout, 120000}] end. %% Return form data or an empty list.