Hi!

On Wed, Apr 11, 2018 at 07:35:50AM -0700, 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.

ECONNABORTED may happens on ln.Accept() in case connection was reset
right after connecting and before ln.Accept() returned it - so, in this
case this error is really temporary, you should ignore it and call
ln.Accept() again.

As for ECONNRESET I'm not sure. Usually on Write() you should get EPIPE,
not ECONNRESET. But check this: https://stackoverflow.com/a/2979806/113120

-- 
                        WBR, Alex.

-- 
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