github.com/inazumav/sing-box@v0.0.0-20230926072359-ab51429a14f1/constant/timeout.go (about)

     1  package constant
     2  
     3  import "time"
     4  
     5  const (
     6  	TCPTimeout             = 5 * time.Second
     7  	ReadPayloadTimeout     = 300 * time.Millisecond
     8  	DNSTimeout             = 10 * time.Second
     9  	QUICTimeout            = 30 * time.Second
    10  	STUNTimeout            = 15 * time.Second
    11  	UDPTimeout             = 5 * time.Minute
    12  	DefaultURLTestInterval = 1 * time.Minute
    13  )