code: func IsConnectionReset(err error) bool {
  	if urlErr, ok := err.(*url.Error); ok {
  		err = urlErr.Err
  	}
  	if opErr, ok := err.(*net.OpError); ok {
  		err = opErr.Err
  	}
  	if osErr, ok := err.(*os.SyscallError); ok {
  		err = osErr.Err
  	}
  	if errno, ok := err.(syscall.Errno); ok && errno == syscall.ECONNRESET {
  		return true
  	}
  	return false
  }
docs: // Returns if the given err is "connection reset by peer" error.