summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@intec.ugent.be>2016-10-26 14:59:43 +0200
committerSander Vrijders <sander.vrijders@intec.ugent.be>2016-10-26 15:10:28 +0200
commit188aba280f7c5b80b868cb1527fce9d45702a196 (patch)
tree5a0852a4832cc853d45e96f0087e7724c8b205a1 /include
parentcc64e52dee3559128293a17a669e94acb48f9309 (diff)
downloadouroboros-188aba280f7c5b80b868cb1527fce9d45702a196.tar.gz
ouroboros-188aba280f7c5b80b868cb1527fce9d45702a196.zip
ipcpd: Add threadpool for main loop
This adds a threadpool for the main loop of the IPCPs. Before there was a single thread handling each request, which could result in starvation since performing name queries at the same time as enrolling a normal IPCP was impossible.
Diffstat (limited to 'include')
-rw-r--r--include/ouroboros/config.h.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ouroboros/config.h.in b/include/ouroboros/config.h.in
index 6ffcb97f..122899f3 100644
--- a/include/ouroboros/config.h.in
+++ b/include/ouroboros/config.h.in
@@ -48,6 +48,7 @@
#define SHM_FLOW_SET_PREFIX "/ouroboros.sets."
#define IRMD_MAX_FLOWS 4096
#define IRMD_THREADPOOL_SIZE 5
+#define IPCPD_THREADPOOL_SIZE 3
#define LOG_DIR "/@LOG_DIR@/"
#define PTHREAD_COND_CLOCK CLOCK_MONOTONIC
/* Timeout values */