mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 23:40:13 +00:00
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:
parent
b861e17c0b
commit
21496cc223
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user