From 1911de96bea8c30293bc192e22940646f9f5a9d2 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Thu, 27 Aug 2020 22:50:11 +0300 Subject: add errors description --- service/http/errors.go | 1 + service/http/errors_windows.go | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'service') diff --git a/service/http/errors.go b/service/http/errors.go index bdf10332..fb8762ef 100644 --- a/service/http/errors.go +++ b/service/http/errors.go @@ -9,6 +9,7 @@ import ( "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 diff --git a/service/http/errors_windows.go b/service/http/errors_windows.go index 06c2524d..3d0ba04c 100644 --- a/service/http/errors_windows.go +++ b/service/http/errors_windows.go @@ -9,6 +9,9 @@ import ( "syscall" ) +//Software caused connection abort. +//An established connection was aborted by the software in your host computer, +//possibly due to a data transmission time-out or protocol error. var errEPIPE = errors.New("WSAECONNABORTED (10053) -> an established connection was aborted by peer") // handleWriteError just check if error was caused by aborted connection on windows @@ -21,4 +24,4 @@ func handleWriteError(err error) error { } } return err -} \ No newline at end of file +} -- cgit v1.2.3