From 8899ce5089091e21eae088da692468565401abba Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Fri, 19 Jan 2024 15:45:42 +0000 Subject: fix: add acquire timeout to sqlite database connection (#1590) * fix: add acquire timeout to sqlite database connection This should fix #1503 I wasn't able to trigger enough IO pressure for the SQL connection to be a problem. This adds `local_timeout` to the client config. This is a float, and represents the number of seconds (units in line with the other timeouts, though those are ints). Users may well want to reduce this if they regularly have issues, but by default I think 2s is fine and avoids a non-responsive system in bad situations. * tests --- atuin-client/config.toml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'atuin-client/config.toml') diff --git a/atuin-client/config.toml b/atuin-client/config.toml index 24366b60..9e097a41 100644 --- a/atuin-client/config.toml +++ b/atuin-client/config.toml @@ -134,6 +134,12 @@ enter_accept = true ## the specified one. # keymap_mode = "auto" +# network_connect_timeout = 5 +# network_timeout = 5 + +## Timeout (in seconds) for acquiring a local database connection (sqlite) +# local_timeout = 5 + #[stats] # Set commands where we should consider the subcommand for statistics. Eg, kubectl get vs just kubectl #common_subcommands = [ -- cgit v1.3.1