Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNetwork ¶
Types ¶
type TcpKeepaliveListener ¶
type TcpKeepaliveListener struct { *net.TCPListener Keepalive bool KeepalivePeriod time.Duration }
NOTE: Copy from fasthttp/server.go
TcpKeepaliveListener sets TCP keep-alive timeouts on accepted connections. It's used by ListenAndServe, ListenAndServeTLS and ListenAndServeTLSEmbed so dead TCP connections (e.g. closing laptop mid-download) eventually go away.
Click to show internal directories.
Click to hide internal directories.