From b64adda2ce21d3daa67122faf5c5ca798131fb26 Mon Sep 17 00:00:00 2001 From: Jamil Date: Tue, 31 Jan 2023 18:56:23 -0800 Subject: [PATCH] Increase load peer timeout (#1396) Temporary workaround for a rare issue where many peers (> hundreds) cause a timeout for the `GenServer.call` function, preventing the `wireguard_public_key` from being set properly. This will be removed in 0.8, so only an increased timeout is needed for now. --- apps/fz_vpn/lib/fz_vpn/server.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/fz_vpn/lib/fz_vpn/server.ex b/apps/fz_vpn/lib/fz_vpn/server.ex index e4b96a171..9b2916d23 100644 --- a/apps/fz_vpn/lib/fz_vpn/server.ex +++ b/apps/fz_vpn/lib/fz_vpn/server.ex @@ -10,7 +10,7 @@ defmodule FzVpn.Server do alias FzVpn.Keypair @process_opts Application.compile_env(:fz_vpn, :server_process_opts, []) - @init_timeout 1_000 + @init_timeout 10_000 def start_link(_) do GenServer.start_link(__MODULE__, %{}, @process_opts)