tcpfailfast

package module
v0.0.0-...-d91a8bb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2018 License: MIT Imports: 7 Imported by: 0

README

tcp-failfast

Build Status Widget GoDoc Widget

tcp-failfast is a Go library which allows control over the TCP "user timeout" behavior. ⏱

This timeout is specified in RFC 793 but is not implemented on all platforms. Currently Linux and Darwin are supported.

Documentation

Overview

Package tcpfailfast allows control over the TCP "user timeout" behavior.

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupported = errors.New("tcp-failfast is unsupported on this platform")

ErrUnsupported is returned when there is no implementation of the timeout on the current platform.

Functions

func FailFastTCP

func FailFastTCP(tcp *net.TCPConn, timeout time.Duration) error

FailFastTCP instructs the kernel to forcefully close the connection when transmitted data remains unacknowledged after the given timeout. This is the "user timeout" specified in RFC 793, but bear in mind that not all platforms support this option.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL