summaryrefslogtreecommitdiff
path: root/pkg/worker_handler/errors.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/worker_handler/errors.go')
-rw-r--r--pkg/worker_handler/errors.go26
1 files changed, 0 insertions, 26 deletions
diff --git a/pkg/worker_handler/errors.go b/pkg/worker_handler/errors.go
deleted file mode 100644
index c3352a52..00000000
--- a/pkg/worker_handler/errors.go
+++ /dev/null
@@ -1,26 +0,0 @@
-//go:build !windows
-// +build !windows
-
-package handler
-
-import (
- "errors"
- "net"
- "os"
- "syscall"
-)
-
-// Broken pipe
-var errEPIPE = errors.New("EPIPE(32) -> connection reset by peer")
-
-// handleWriteError just check if error was caused by aborted connection on linux
-func handleWriteError(err error) error {
- if netErr, ok2 := err.(*net.OpError); ok2 {
- if syscallErr, ok3 := netErr.Err.(*os.SyscallError); ok3 {
- if errors.Is(syscallErr.Err, syscall.EPIPE) {
- return errEPIPE
- }
- }
- }
- return err
-}