increase dns cache time; retry failed requests and lower timeout

This commit is contained in:
Laptop
2024-08-22 18:26:55 +03:00
parent 99c7567a18
commit 7289c12cfa
5 changed files with 33 additions and 5 deletions

View File

@@ -19,4 +19,7 @@ const TrackTTL = 5 * time.Minute
// default fasthttp one was causing connections to be stuck? todo make it cycle browser useragents or just choose random at startup
const UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0"
// time-to-live for dns cache
const DNSCacheTTL = 10 * time.Minute
var JSON = jsoniter.ConfigFastest