aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 30518c6..b0faed8 100644
--- a/tun/tun_windows.go
+++ b/tun/tun_windows.go
@@ -215,7 +215,7 @@ retry:
if tun.close {
return 0, os.ErrClosed
}
- if time.Since(start) >= time.Millisecond*50 {
+ if time.Since(start) >= time.Millisecond/80 /* ~1gbit/s */ {
windows.WaitForSingleObject(tun.rings.send.tailMoved, windows.INFINITE)
goto retry
}