diff options
Diffstat (limited to 'service')
-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 +} |