aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-08-11 05:54:10 +0200
committerChristian Grothoff <christian@grothoff.org>2018-08-11 05:54:10 +0200
commit17b9f39a86807a42c13a79c5e61062aaeaa8c471 (patch)
treef6aed1bce98f5ae214413a82f0071f6cb09fbaff /src/util
parent6d6b223694303d3b437a2dcee72e4d3542505066 (diff)
disable SECMEM for Taler exchange, it causes massive lock contention and then scalability issues
Diffstat (limited to 'src/util')
-rw-r--r--src/util/os_installation.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util/os_installation.c b/src/util/os_installation.c
index 21e167963..8fe39ad85 100644
--- a/src/util/os_installation.c
+++ b/src/util/os_installation.c
@@ -60,7 +60,14 @@ TALER_project_data_default (void)
void __attribute__ ((constructor))
TALER_OS_init ()
{
+ gcry_error_t rc;
+
GNUNET_OS_init (&taler_pd);
+ if ((rc = gcry_control (GCRYCTL_DISABLE_SECMEM, 1)))
+ FPRINTF (stderr,
+ "Failed to set libgcrypt option %s: %s\n",
+ "DISABLE_SECMEM",
+ gcry_strerror (rc));
}