fix: отбрасывать опоздавший повтор client id, общий backoff квоты

This commit is contained in:
samosvalishe committed 2026-09-22 00:43:06 +03:00
1 parent 1e3782c546
commit 05bbe996c1
5 files changed
+12 -12

No files matched your search

+4
View File
@@ -21,6 +21,10 @@ import (
// аллокаций. Лечится ожиданием, а не сменой реквизитов (см. IsAuthError в vkauth).
var ErrAllocQuota = errors.New("turndial: allocation quota reached")
func QuotaBackoff() time.Duration {
return time.Duration(15+randx.Intn(15)) * time.Second
}
// Config задаёт параметры подключения к TURN-серверу.
type Config struct {
HostOverride string