diff options
Diffstat (limited to 'p11p-daemon/config/sys.config')
-rw-r--r-- | p11p-daemon/config/sys.config | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/p11p-daemon/config/sys.config b/p11p-daemon/config/sys.config index 74d2c21..e697383 100644 --- a/p11p-daemon/config/sys.config +++ b/p11p-daemon/config/sys.config @@ -4,20 +4,30 @@ [ {loglevel, 3}, {proxyapp_bin_path, "/usr/lib/x86_64-linux-gnu/p11-kit/p11-kit-remote"}, - {groups, + {testing_drop_prob, 0}, + {vtokens, [{"vtoken0", [ - {mode, {balance, [2]}}, + {timeout, 2000}, {modules, - [{"softhsm2", "/usr/lib/softhsm/libsofthsm2.so"}, - {"bogusmod_0", "/usr/lib/softhsm/libsofthsm2.so"}]} + [ + {"softhsm2", "/usr/lib/softhsm/libsofthsm2.so"}, + {"bogusmod_0", "/usr/lib/softhsm/libsofthsm2.so"} + ]} ]}, {"vtoken1", - [{modules, - [{"softhsm2", "/usr/lib/softhsm/libsofthsm2.so", [{"SOME_ENV", "hi env!"}]}]} + [ + %% Try failover twice, even if we have only one token. In + %% effect, retry the same token once after a failure. + {failover, 2}, + {timeout, 1000}, + {modules, + [ + {"softhsm2", "/usr/lib/softhsm/libsofthsm2.so", [{"SOFTHSM2_CONF", "/home/linus/usr/src/p11p/tests/softhsm/softhsm2.conf"}]} + ]} ]} - ]} - ]}, + ]} + ]}, {lager, [{handlers, [ |