Versions in this module Expand all Collapse all v1 v1.0.0 Mar 23, 2021 Changes in this version + var ErrClosed = errors.New("IOActivityTimeout: closed connection") + func IOActivityTimeout(c net.Conn, enable bool) (success bool, err error) + func NewIOActivityTimeoutListener(orig net.Listener, timeout, reaperInterval time.Duration) (l net.Listener) + func StartTimer(c net.Conn, to time.Duration, afterfunc func(wrapped net.Conn)) + func StopTimer(c net.Conn) + type Dialer struct + func NewIOActivityTimeoutDialer(orig *net.Dialer, timeout, reaperInterval time.Duration, enableByDefault bool) (d *Dialer) + func (d *Dialer) Dial(network, address string) (rc net.Conn, err error) + func (d *Dialer) DialContext(ctx context.Context, network, address string) (rc net.Conn, err error)