errors

package
v0.0.0-...-d8853ad Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsBrokenPipe

func IsBrokenPipe(err error) bool

IsBrokenPipe determines whether the provided error is a "broken pipe" error. It checks if the error is or wraps `syscall.EPIPE` or `syscall.ECONNRESET`, which are commonly returned when a connection is forcibly closed by the client. Recognizing these errors allows us to handle them differently, such as avoiding logging them at the error level since they often indicate normal client behavior (e.g., the client disconnecting abruptly) rather than a server-side issue.

Types

This section is empty.

Jump to

Keyboard shortcuts

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