diff options
author | Valery Piashchynski <[email protected]> | 2020-08-27 22:50:11 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-08-27 22:50:11 +0300 |
commit | 1911de96bea8c30293bc192e22940646f9f5a9d2 (patch) | |
tree | e8b33245bf9b2862d43a003c8713ea07445868e6 | |
parent | 10f0c747a7eb1c3ae2a06a4148f4b7ede61f2cdc (diff) |
add errors description
-rw-r--r-- | service/http/errors.go | 1 | ||||
-rw-r--r-- | service/http/errors_windows.go | 5 |
2 files changed, 5 insertions, 1 deletions
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 +} |