On 12/10/2013 03:46 PM, Kashif Mohammad wrote:
> I want to know that how it choses one of the voms server by
> default. Does it pick one of the voms server randomly or apply some logic?
In the code for vomsclient.cc is this, which indicates that perhaps a
randomisation is supposed to happen?
---------------------------------------------------------------------
/* find servers for that vo */
std::vector<contactdata> servers;
servers = v->FindByAlias(contact.nick());
rand_wrapper rd(time(0));
random_shuffle(servers.begin(),
servers.end(),
rd);
std::string vo = (contact.vo().empty() ? servers[0].vo : contact.vo());
---------------------------------------------------------------------
Steve
--
Steve Jones [log in to unmask]
System Administrator office: 220
High Energy Physics Division tel (int): 42334
Oliver Lodge Laboratory tel (ext): +44 (0)151 794 2334
University of Liverpool http://www.liv.ac.uk/physics/hep/
|