diff options
| author | Magnus Ahltorp <map@kth.se> | 2015-10-13 17:02:59 +0200 |
|---|---|---|
| committer | Magnus Ahltorp <map@kth.se> | 2015-10-13 17:02:59 +0200 |
| commit | d03a5d7f6e5530e7b0504e491f36f2caf596302f (patch) | |
| tree | 898eae2ab9d21c6a92cca225589049ab1c0f7119 /src/sign.erl | |
| parent | 14322d7a7d691be30836709e6f1f842786a8170b (diff) | |
Move timeouts to separate include file
Diffstat (limited to 'src/sign.erl')
| -rw-r--r-- | src/sign.erl | 4 |
1 files changed, 3 insertions, 1 deletions
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 |
