From ffd8de94c9b3829116f6604dfae8aa9a24ef2ef3 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Sat, 5 Aug 2017 09:15:17 -0600 Subject: irmd: Specify timeout per command The commands towards the IPCPs have different time requirements, but the irmd had only a single timeout value to wait for a response. This commit allows setting different timeouts for the IRMd based on the command, configurable globally. --- include/ouroboros/config.h.in | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/ouroboros/config.h.in b/include/ouroboros/config.h.in index 4c255da5..0957ee4d 100644 --- a/include/ouroboros/config.h.in +++ b/include/ouroboros/config.h.in @@ -66,8 +66,11 @@ #define IRMD_REQ_ARR_TIMEOUT 500 #define IRMD_FLOW_TIMEOUT 5000 #define IPCP_ACCEPT_TIMEOUT 100 -#define SOCKET_TIMEOUT 10000 +#define SOCKET_TIMEOUT 1000 +#define BOOTSTRAP_TIMEOUT 5000 +#define ENROLL_TIMEOUT 60000 +#define REG_TIMEOUT 10000 +#define QUERY_TIMEOUT 3000 #define CDAP_REPLY_TIMEOUT 1000 -#define ENROLL_TIMEOUT 2000 #endif /* OUROBOROS_CONFIG */ -- cgit v1.2.3