mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 13:38:01 +00:00
Windows: Make idle dead timeout very long
The idle dead timeout processing must eventually be removed from Rx for initiators. In the meantime, make the timeout period ten times longer than the hard dead timeout. This permits eventual failure when the server doesn't respond in ten minutes but avoids more transient issues. Change-Id: Ia673666dd55b33c4375ee8fdcbb89c82e8b01185 Reviewed-on: http://gerrit.openafs.org/6440 Tested-by: BuildBot <buildbot@rampaginggeek.com> Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com> Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
This commit is contained in:
parent
19f1e0f7cf
commit
07655bc23e
@ -158,7 +158,7 @@ void cm_InitConn(void)
|
||||
afsi_log("HardDeadTimeout is %d", HardDeadtimeout);
|
||||
}
|
||||
if (IdleDeadtimeout == 0) {
|
||||
IdleDeadtimeout = (unsigned short) ConnDeadtimeout;
|
||||
IdleDeadtimeout = 10 * (unsigned short) HardDeadtimeout;
|
||||
afsi_log("IdleDeadTimeout is %d", IdleDeadtimeout);
|
||||
}
|
||||
} else {
|
||||
@ -1238,6 +1238,8 @@ static void cm_NewRXConnection(cm_conn_t *tcp, cm_ucell_t *ucellp,
|
||||
secIndex);
|
||||
rx_SetConnDeadTime(tcp->rxconnp, ConnDeadtimeout);
|
||||
rx_SetConnHardDeadTime(tcp->rxconnp, HardDeadtimeout);
|
||||
|
||||
/* Disable Idle Dead Timeout processing as it can lead to data corruption. */
|
||||
rx_SetConnIdleDeadTime(tcp->rxconnp, IdleDeadtimeout);
|
||||
|
||||
/*
|
||||
|
@ -25,8 +25,8 @@
|
||||
#endif
|
||||
|
||||
#define CM_CONN_IFS_HARDDEADTIME 120
|
||||
#define CM_CONN_IFS_CONNDEADTIME 50
|
||||
#define CM_CONN_IFS_IDLEDEADTIME 50
|
||||
#define CM_CONN_IFS_CONNDEADTIME 60
|
||||
#define CM_CONN_IFS_IDLEDEADTIME 1200
|
||||
|
||||
extern unsigned short ConnDeadtimeout;
|
||||
extern unsigned short HardDeadtimeout;
|
||||
|
Loading…
x
Reference in New Issue
Block a user