Windows: add connection defaults for RDR mode

CM_CONN_IFS_HARDDEADTIME       120
  CM_CONN_IFS_CONNDEADTIME        50
  CM_CONN_IFS_IDLEDEADTIME        50

Change-Id: I0b110f2a33879bb889d4ad4b54b7c218a1006e65
Reviewed-on: http://gerrit.openafs.org/5339
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
This commit is contained in:
Jeffrey Altman 2011-09-03 18:19:58 -04:00 committed by Jeffrey Altman
parent b861e17c0b
commit 21496cc223
2 changed files with 17 additions and 0 deletions

View File

@ -161,6 +161,19 @@ void cm_InitConn(void)
IdleDeadtimeout = (unsigned short) ConnDeadtimeout;
afsi_log("IdleDeadTimeout is %d", IdleDeadtimeout);
}
} else {
if (ConnDeadtimeout == 0) {
ConnDeadtimeout = CM_CONN_IFS_CONNDEADTIME;
afsi_log("ConnDeadTimeout is %d", ConnDeadtimeout);
}
if (HardDeadtimeout == 0) {
HardDeadtimeout = CM_CONN_IFS_HARDDEADTIME;
afsi_log("HardDeadTimeout is %d", HardDeadtimeout);
}
if (IdleDeadtimeout == 0) {
IdleDeadtimeout = CM_CONN_IFS_IDLEDEADTIME;
afsi_log("IdleDeadTimeout is %d", IdleDeadtimeout);
}
}
osi_EndOnce(&once);
}

View File

@ -24,6 +24,10 @@
#define CM_CONN_NATPINGINTERVAL 0
#endif
#define CM_CONN_IFS_HARDDEADTIME 120
#define CM_CONN_IFS_CONNDEADTIME 50
#define CM_CONN_IFS_IDLEDEADTIME 50
extern unsigned short ConnDeadtimeout;
extern unsigned short HardDeadtimeout;
extern DWORD RDRtimeout;