diff options
author | Simon Rozman <simon@rozman.si> | 2019-03-22 12:45:31 +0100 |
---|---|---|
committer | Simon Rozman <simon@rozman.si> | 2019-03-22 13:52:51 +0100 |
commit | 4b1db1d39bc6383ed360cfecc7cc9f1dac976dfa (patch) | |
tree | 20c2ed79c36f0cdd99953694c163d5b9e4c83f32 /tun/tun_windows.go | |
parent | a80db5e65e4c202bae184a32120017782549fdac (diff) |
tun: windows: Increase unavailable adapter timeout to 30sec
5 seconds was too short when debugging.
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'tun/tun_windows.go')
-rw-r--r-- | tun/tun_windows.go | 2 |
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 { |