windows-new-server-ping-20060213
authorJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 13 Feb 2006 16:28:59 +0000 (16:28 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 13 Feb 2006 16:28:59 +0000 (16:28 +0000)
when adding a new server, mark it down to start.
this will allow the Ping to use the short timeout when checking the real
status.

src/WINNT/afsd/cm_server.c

index efed409..5a2dd83 100644 (file)
@@ -244,6 +244,7 @@ cm_server_t *cm_NewServer(struct sockaddr_in *socketp, int type, cm_cell_t *cell
     tsp->refCount = 1;
     lock_InitializeMutex(&tsp->mx, "cm_server_t mutex");
     tsp->addr = *socketp;
+    tsp->flags = CM_SERVERFLAG_DOWN;   /* assume down; ping will mark up if available */
 
     cm_SetServerPrefs(tsp);