summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rozman <simon@rozman.si>2019-03-22 12:45:31 +0100
committerSimon Rozman <simon@rozman.si>2019-03-22 13:52:51 +0100
commit4b1db1d39bc6383ed360cfecc7cc9f1dac976dfa (patch)
tree20c2ed79c36f0cdd99953694c163d5b9e4c83f32
parenttun: windows: Make writing persistent too (diff)
downloadwireguard-go-4b1db1d39bc6383ed360cfecc7cc9f1dac976dfa.tar.xz
wireguard-go-4b1db1d39bc6383ed360cfecc7cc9f1dac976dfa.zip
tun: windows: Increase unavailable adapter timeout to 30sec
5 seconds was too short when debugging. Signed-off-by: Simon Rozman <simon@rozman.si>
-rw-r--r--tun/tun_windows.go2
1 files changed, 1 insertions, 1 deletions
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 {