From 4b1db1d39bc6383ed360cfecc7cc9f1dac976dfa Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Fri, 22 Mar 2019 12:45:31 +0100 Subject: [PATCH] tun: windows: Increase unavailable adapter timeout to 30sec 5 seconds was too short when debugging. Signed-off-by: Simon Rozman --- tun/tun_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tun/tun_windows.go b/tun/tun_windows.go index 9888e86..d4be66b 100644 --- a/tun/tun_windows.go +++ b/tun/tun_windows.go @@ -22,7 +22,7 @@ const ( packetSizeMax uint32 = 0xf000 - packetExchangeAlignment // Maximum packet size packetExchangeSize uint32 = 0x100000 // Exchange buffer size (defaults to 1MiB) retryRate = 4 // Number of retries per second to reopen device pipe - retryTimeout = 5 // Number of seconds to tolerate adapter unavailable + retryTimeout = 30 // Number of seconds to tolerate adapter unavailable ) type exchgBufRead struct {