mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-12-27 16:15:39 +08:00
22 lines
750 B
Go
22 lines
750 B
Go
package constant
|
|
|
|
import "time"
|
|
|
|
const (
|
|
TCPKeepAliveInitial = 10 * time.Minute
|
|
TCPKeepAliveInterval = 75 * time.Second
|
|
TCPConnectTimeout = 5 * time.Second
|
|
TCPTimeout = 15 * 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
|
|
StartTimeout = 10 * time.Second
|
|
StopTimeout = 5 * time.Second
|
|
FatalStopTimeout = 10 * time.Second
|
|
FakeIPMetadataSaveInterval = 10 * time.Second
|
|
)
|