From 2e988467c2c9b7a94369f605bad6b08c70a9df7e Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 3 May 2019 00:11:59 +0200 Subject: wintun: work around GetInterface staleness bug --- tun/wintun/registryhacks_windows.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tun/wintun') diff --git a/tun/wintun/registryhacks_windows.go b/tun/wintun/registryhacks_windows.go index 94cc2f3..bf72f92 100644 --- a/tun/wintun/registryhacks_windows.go +++ b/tun/wintun/registryhacks_windows.go @@ -11,8 +11,8 @@ import ( ) const ( - numRetries = 100 - retryTimeout = 150 * time.Millisecond + numRetries = 50 + retryTimeout = 100 * time.Millisecond ) func registryOpenKeyRetry(k registry.Key, path string, access uint32) (key registry.Key, err error) { -- cgit v1.2.3