congestion

package
v0.0.0-...-39125e7 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package congestion contains code required to set the congestion control algorithm and read BBR variables of a net.Conn. This code currently only works on Linux systems, as BBR is only available there.

Index

Constants

This section is empty.

Variables

View Source
var ErrNoSupport = errors.New("TCP_CC_INFO not supported")

ErrNoSupport indicates that this system does not support BBR.

Functions

func Get

func Get(fp *os.File) (string, error)

func GetBBRInfo

func GetBBRInfo(fp *os.File) (inetdiag.BBRInfo, error)

GetBBRInfo obtains BBR info from |fp|.

func Set

func Set(fp *os.File, cc string) error

Enable sets the congestion control algorithm for |fp|.

Types

This section is empty.

Jump to

Keyboard shortcuts

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