congestion

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: Apache-2.0 Imports: 7 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)

Get returns the congestion control algorithm set for the given socket's file descriptor.

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

Set sets the congestion control algorithm for the given socket to a string value. It can fail if the requested cc algorithm is not available.

Types

This section is empty.

Jump to

Keyboard shortcuts

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