fix(relay): восстановление потоков при отказах turn и занятой квоте

This commit is contained in:
samosvalishe committed 2026-09-12 17:29:09 +03:00
1 parent e72157f4f7
commit 6570cd9dd7
12 files changed
+117 -12

No files matched your search

+2 -3
View File
@@ -33,7 +33,6 @@ const (
)
const (
connectTimeout = 15 * time.Second
stopTimeout = 5 * time.Second
tunnelCloseTimeout = 3 * time.Second
)
@@ -304,8 +303,8 @@ func startLocked(configJSON string, tunFD int, withTunnel bool) error {
Solver: solver,
CaptchaActive: captchaActive.Load,
Options: session.Options{
ConnectTimeout: connectTimeout,
Traffic: true,
// Сеть и квота TURN восстанавливаются дольше 15 с; остановку решает пользователь.
Traffic: true,
},
}
if parts != nil {