Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Dialer is copied from the invocation in http.DefaultTransport: https://github.com/golang/go/blob/859cab099c5a9a9b4939960b630b78e468c8c39e/src/net/http/transport.go#L40-L44
Functions ¶
Types ¶
type TCPListener ¶
type TCPListener struct {
*net.TCPListener
}
TCPListener sets TCP keep-alive timeouts on accepted connections. It's used by ListenAndServe and ListenAndServeTLS so dead TCP connections (e.g. closing laptop mid-download) eventually go away.
Copied, renamed and exported from: https://github.com/golang/go/blob/d6bce32a3607222075734bf4363ca3fea02ea1e5/src/pkg/net/http/server.go#L1840-L1856 so we can use net.Listen + http.Serve.
Click to show internal directories.
Click to hide internal directories.