Update MTPROXY_CHECK_TIMEOUT to 45s in docker-compose and documentation; adjust default timeout handling in code for improved performance under slow network conditions.
Publish mtproxy_checker Docker image / test (push) Successful in 13s
Publish mtproxy_checker Docker image / build-and-push (push) Successful in 52s

This commit is contained in:
Denozordec
2026-04-11 13:39:52 +07:00
parent 6a6183a994
commit 6f2dbcbca3
5 changed files with 25 additions and 6 deletions
+2 -1
View File
@@ -58,7 +58,8 @@ func loadConfig() (*config, error) {
}
timeoutStr := strings.TrimSpace(os.Getenv("MTPROXY_CHECK_TIMEOUT"))
if timeoutStr == "" {
timeoutStr = "15s"
// Fake-TLS + drain + req_pq/resPQ к DC часто >15s на медленных линиях и при многих прокси подряд.
timeoutStr = "45s"
}
checkTimeout, err := time.ParseDuration(timeoutStr)
if err != nil || checkTimeout <= 0 {