summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri.staessens@ugent.be>2017-08-05 09:15:17 -0600
committerDimitri Staessens <dimitri.staessens@ugent.be>2017-08-05 09:15:17 -0600
commitffd8de94c9b3829116f6604dfae8aa9a24ef2ef3 (patch)
treec610c50a35925d2456382610fbba875c2e6ae1ea /include
parent6464bb4b9759b10aa144af2edf98a898a60256c7 (diff)
downloadouroboros-ffd8de94c9b3829116f6604dfae8aa9a24ef2ef3.tar.gz
ouroboros-ffd8de94c9b3829116f6604dfae8aa9a24ef2ef3.zip
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.
Diffstat (limited to 'include')
-rw-r--r--include/ouroboros/config.h.in7
1 files changed, 5 insertions, 2 deletions
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 */