Add idle_timeout for URLTest outbound

This commit is contained in:
世界 2023-12-03 11:57:53 +08:00
parent a99deb2cb5
commit f1e3a59db3
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
5 changed files with 62 additions and 17 deletions

View file

@ -3,11 +3,12 @@ package constant
import "time"
const (
TCPTimeout = 5 * time.Second
ReadPayloadTimeout = 300 * time.Millisecond
DNSTimeout = 10 * time.Second
QUICTimeout = 30 * time.Second
STUNTimeout = 15 * time.Second
UDPTimeout = 5 * time.Minute
DefaultURLTestInterval = 1 * time.Minute
TCPTimeout = 5 * time.Second
ReadPayloadTimeout = 300 * time.Millisecond
DNSTimeout = 10 * time.Second
QUICTimeout = 30 * time.Second
STUNTimeout = 15 * time.Second
UDPTimeout = 5 * time.Minute
DefaultURLTestInterval = 3 * time.Minute
DefaultURLTestIdleTimeout = 30 * time.Minute
)