Xray-core/common/net/net.go

15 lines
522 B
Go
Raw Permalink Normal View History

2020-11-25 11:01:53 +00:00
// Package net is a drop-in replacement to Golang's net package, with some more functionalities.
2020-12-04 01:36:16 +00:00
package net // import "github.com/xtls/xray-core/common/net"
import "time"
// defines the maximum time an idle TCP session can survive in the tunnel, so
// it should be consistent across HTTP versions and with other transports.
const ConnIdleTimeout = 300 * time.Second
// consistent with quic-go
const QuicgoH3KeepAlivePeriod = 10 * time.Second
// consistent with chrome
const ChromeH2KeepAlivePeriod = 45 * time.Second