mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 23:40:13 +00:00
Windows: conditionalize cm_Analyze timeLeft on SMB or RDR
Restrict timeLeft in cm_Analyze() to SMB constraints only when SMB mode is in use. Change-Id: Iff37b90c1532fe9aa7d57567f4ff4e5e6877cb65 Reviewed-on: http://gerrit.openafs.org/5341 Reviewed-by: Jeffrey Altman <jaltman@openafs.org> Tested-by: Jeffrey Altman <jaltman@openafs.org>
This commit is contained in:
parent
f1ca805de8
commit
abe0e6b7bc
@ -285,7 +285,10 @@ cm_Analyze(cm_conn_t *connp, cm_user_t *userp, cm_req_t *reqp,
|
||||
|
||||
/* timeleft - get it from reqp the same way as cm_ConnByMServers does */
|
||||
timeUsed = (GetTickCount() - reqp->startTime) / 1000;
|
||||
timeLeft = HardDeadtimeout - timeUsed;
|
||||
if ( reqp->flags & CM_REQ_SOURCE_SMB )
|
||||
timeLeft = HardDeadtimeout - timeUsed;
|
||||
else
|
||||
timeLeft = 0x0FFFFFFF;
|
||||
|
||||
/* get a pointer to the cell */
|
||||
if (errorCode) {
|
||||
|
Loading…
Reference in New Issue
Block a user