On Wed, Apr 11, 2018 at 7:35 AM, <pierspowlesl...@gmail.com> wrote:
>
> So I believe I have found the source of this problem. A method Temporary is 
> defined on syscall.Errno, for a reason that is unclear to me ECONNRESET and 
> ECONNABORTED are considered temporary. I would definitely consider those 
> errors permanent.
>
>
>
> func (e Errno) Temporary() bool {
> return e == EINTR || e == EMFILE || e == ECONNRESET || e == ECONNABORTED || 
> e.Timeout()
> }
>
> Link to function in source - 
> https://github.com/golang/go/blob/master/src/syscall/syscall_unix.go#L123
>
> Can anyone explain why these errors are considered temporary?

See https://golang.org/issue/6163.

You might want to open an issue about this.

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to