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:
Jeffrey Altman 2011-09-03 18:25:10 -04:00 committed by Jeffrey Altman
parent f1ca805de8
commit abe0e6b7bc

View File

@ -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) {