From e77934418082facf6c4b3566100b108b26e4119d Mon Sep 17 00:00:00 2001 From: Magnus Ahltorp Date: Tue, 13 Oct 2015 17:02:59 +0200 Subject: Move timeouts to separate include file --- src/sign.erl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/sign.erl') diff --git a/src/sign.erl b/src/sign.erl index 5949ad1..ced218a 100644 --- a/src/sign.erl +++ b/src/sign.erl @@ -16,6 +16,8 @@ -export([init/1, handle_call/3, terminate/2, handle_cast/2, handle_info/2, code_change/3]). +-include("timeouts.hrl"). + -define(CERTIFICATE_TIMESTAMP, 0). -define(TREE_HASH, 1). @@ -241,7 +243,7 @@ handle_call({sign, Data}, _From, State) -> [Port, ExitStatus]), {stop, portexit, State} after - 10000 -> + ?SIGN_HSM_PORT_TIMEOUT -> lager:error("HSM timeout"), {stop, timeout, State} end -- cgit v1.1