diff options
author | Magnus Ahltorp <map@kth.se> | 2015-10-13 17:02:59 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2015-11-11 13:32:37 +0100 |
commit | e77934418082facf6c4b3566100b108b26e4119d (patch) | |
tree | a63407f52b3bf0e0ce5197086fd9ccef3dbd87d3 /src/sign.erl | |
parent | bf942e436439cad802a04d4d971f47aa378bc482 (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 |