summaryrefslogtreecommitdiff
path: root/src/ipcpd/normal
diff options
context:
space:
mode:
authordimitri staessens <[email protected]>2017-03-23 17:03:51 +0100
committerdimitri staessens <[email protected]>2017-03-23 17:03:51 +0100
commit5f93b7af2efe9a7910e0fb0852c7e0e741c9d5f3 (patch)
treed9ea76f28cb5eda198e0b2838436d4ecd9584498 /src/ipcpd/normal
parent7013756027751e447c57be5c6eda7b71cb103695 (diff)
downloadouroboros-5f93b7af2efe9a7910e0fb0852c7e0e741c9d5f3.tar.gz
ouroboros-5f93b7af2efe9a7910e0fb0852c7e0e741c9d5f3.zip
ipcpd: Increase update timeout in fmgr
This works around a possible bug in glibc 2.25.
Diffstat (limited to 'src/ipcpd/normal')
-rw-r--r--src/ipcpd/normal/fmgr.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ipcpd/normal/fmgr.c b/src/ipcpd/normal/fmgr.c
index e78dd2d6..6f89084f 100644
--- a/src/ipcpd/normal/fmgr.c
+++ b/src/ipcpd/normal/fmgr.c
@@ -51,7 +51,11 @@
#include "flow_alloc.pb-c.h"
typedef FlowAllocMsg flow_alloc_msg_t;
-#define FD_UPDATE_TIMEOUT 100000 /* nanoseconds */
+/*
+ * NOTE: setting this too low may lead to missed pthread
+ * cancellations when using glibc 2.25. Bug reported to glibc.
+ */
+#define FD_UPDATE_TIMEOUT 10000000 /* nanoseconds */
struct {
flow_set_t * np1_set[QOS_CUBE_MAX];