Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsBrokenPipe ¶
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.
Click to show internal directories.
Click to hide internal directories.