timeout

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2025 License: Unlicense, MIT Imports: 3 Imported by: 0

Documentation

Overview

Package timeout provides a simple extension of a net.TCPConn with a configurable read/write deadline.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn struct {
	time.Duration
	*net.TCPConn
}

Conn extends deadline after successful read or write operations

func (Conn) Read

func (c Conn) Read(b []byte) (n int, e error)

func (Conn) Write

func (c Conn) Write(b []byte) (n int, e error)

Jump to

Keyboard shortcuts

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