Lines Matching refs:server

83  * server list refresh delay when in "no server" mode
160 * The status of a server to be removed. It can be up or down.
432 * getldap_serverInfo_refresh thread is refreshing the server list
441 * The original server_info_t has one copy of server info. When libsldap
442 * makes door call GETLDAPSERVER to get the server info and getldap_get_rootDSE
443 * is updating the server info, it would hit a unprotected window in
444 * getldap_rootDSE. The door call will not get server info and libsldap
537 /* initialize the server info element */
545 * The previous server status of the update copy(sinfo[1])
589 " server"), serverInfo->sinfo[1].addr, rc);
863 * where addr is the address of a server and
865 * NS_CACHE_NEW: send a new server address, addr is ignored.
868 * NS_CACHE_WRITE: send a non-replica server, if possible, if not, same
871 * NS_CACHE_ADDR_IP: return server address as is, this is default.
872 * NS_CACHE_ADDR_HOSTNAME: return both server address and its FQDN format,
875 * a buffer containing server info in the following format:
892 server_info_t *server = NULL;
937 * or the server info is new,
946 * make sure the server info stays the same
951 * This function is called to get server info list
974 * give this server one more chance
980 server = info;
986 * server from the list,
987 * the server should be
995 * to mess up the server
1002 * recursion to contact an LDAP server.
1026 server = info;
1031 server = info;
1039 if (server) {
1047 if (server->sinfo[0].hostname == NULL) {
1048 rc = __s_api_ip2hostname(server->sinfo[0].addr,
1049 &server->sinfo[0].hostname);
1057 server->sinfo[0].addr,
1058 server->sinfo[0].hostname);
1061 ret_addr = server->sinfo[0].addr;
1062 ret_addrFQDN = server->sinfo[0].hostname;
1065 ret_addr = server->sinfo[0].addr;
1069 strlen(server->sinfo[0].rootDSE_data) +
1081 server->sinfo[0].rootDSE_data);
1086 server->sinfo[0].rootDSE_data);
1087 server->sinfo[0].info_status = INFO_STATUS_OLD;
1152 * For each server, the data is in the following format:
1153 * server: server address or name, status: unknown|up|down|removed DOORLINESEP
1155 * server: 1.2.3.4, status: down|server: 2.2.2.2, status: up|
1163 #define S_FORMAT " server: %s, status: %s%s"
1205 * make sure the server info stays the same
1258 /* insert server IP addr or name and status */
1405 * This function implements the adaptive server list refresh
1408 * values. If the server list has been walked three times
1412 * If any time a server is found to be down/bad, either
1413 * after another server list walk or informed by libsldap via
1418 * so that a "no-server" refresh loop should be entered to try
1419 * to find a good server as soon as possible. The caller
1423 * ldap_cachemgr startup or every time the server list is
1425 * from an LDAP server. The maximum is set to the value of
1438 * stay low if the network/server is unstable, but eventually
1440 * network/server is stable.
1487 * init cache manager server list TTL:
1555 * if the server list is walked three times in a row
1575 * if no good server found,
1644 * indicate that the server info is being
1670 * make the new server info available:
1679 * the server list is being created,
1697 * set cache manager server list TTL,
1712 * if no server found or available,
1713 * tell the server info refresh thread
1714 * to start the "no-server" refresh loop
1731 * delete the old server info
1764 * if server info is currently being
1785 * set cache manager server list TTL
1790 * if no good server found,
1791 * tell the server info refresh thread
1792 * to start the "no-server" refresh loop
1824 * if need to go into the "no-server" refresh
1837 " entering no-server "
1869 * serverInfo_old to retrieve server infomation.
1872 * server list is being created.
1887 * Return here and let remove server thread do its job in
1904 * if server info is currently being
1927 * set cache manager server list TTL if necessary
1937 * if no good server found, need to go into
1938 * the "no-server" refresh loop
1939 * to find a server as soon as possible
1944 * if already in no-server mode,
2003 /* create the server info list */
2048 /* Log server IP */
2055 logit("getldap_getserver: got server %s\n",
2163 /* get server statisitcs */
2428 * the profile from server would fail
2437 * downloaded from the server, so is NS_LDAP_EXP_P.
2465 * recreate the server info list
2550 * wait for an available server
2814 * This is called in removing server case.
2854 * Return: 0 server is down, 1 server is up
2886 * non-blocking when it's contacting server.
2909 * It starts a thread to contact server and remove server to avoid long wait
2923 * This is called in removing server case.