Skip to content

Commit

Permalink
Reduce delay for failover test attempts
Browse files Browse the repository at this point in the history
Should manually calculating gateway IP really resolve the issue with
false-positive failover tests, the delay shouldn't be necessary at all.

Reference: a168841
Signed-off-by: Simon Rozman <simon@rozman.si>
  • Loading branch information
rozmansi committed Aug 9, 2024
1 parent a168841 commit 1a8c4de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eduVPN/ViewModels/VPN/Session.cs
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ public Session(ConnectWizard wizard, Server server, Configuration config, Expira
var gateway = new IPAddress(gatewayBytes).ToString();
for (; ; )
{
if (SessionAndWindowInProgress.Token.WaitHandle.WaitOne(1000))
if (SessionAndWindowInProgress.Token.WaitHandle.WaitOne(250))
return;
foreach (var iface in NetworkInterface.GetAllNetworkInterfaces()
.Where(n =>
Expand Down

0 comments on commit 1a8c4de

Please sign in to comment.