]> git.ipfire.org Git - thirdparty/wireguard-go.git/commitdiff
tun: windows: Increase unavailable adapter timeout to 30sec
authorSimon Rozman <simon@rozman.si>
Fri, 22 Mar 2019 11:45:31 +0000 (12:45 +0100)
committerSimon Rozman <simon@rozman.si>
Fri, 22 Mar 2019 12:52:51 +0000 (13:52 +0100)
5 seconds was too short when debugging.

Signed-off-by: Simon Rozman <simon@rozman.si>
tun/tun_windows.go

index 9888e86975c111bbbcd3c98fe52a15b9ba6f6af6..d4be66b47c12cc79f6fb21c415258b8eba15cb68 100644 (file)
@@ -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                   =                                // Number of seconds to tolerate adapter unavailable
+       retryTimeout                   = 30                               // Number of seconds to tolerate adapter unavailable
 )
 
 type exchgBufRead struct {