sing-box/constant/timeout.go

16 lines
427 B
Go
Raw Normal View History

2022-07-18 12:40:14 +00:00
package constant
import "time"
const (
2022-07-25 14:02:39 +00:00
TCPTimeout = 5 * time.Second
2022-07-25 22:56:13 +00:00
TCPKeepAlivePeriod = 30 * time.Second
2022-07-25 14:02:39 +00:00
ReadPayloadTimeout = 300 * time.Millisecond
URLTestTimeout = TCPTimeout
DefaultURLTestInterval = 1 * time.Minute
DNSTimeout = 10 * time.Second
QUICTimeout = 30 * time.Second
STUNTimeout = 15 * time.Second
UDPTimeout = 5 * time.Minute
2022-07-18 12:40:14 +00:00
)