]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-windows-rdrtimeout-20070727
authorJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 28 Jul 2007 03:51:16 +0000 (03:51 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 28 Jul 2007 03:51:16 +0000 (03:51 +0000)
RDRtimeout is seconds.  need to convert to milliseconds for comparison

(cherry picked from commit 0ba1a6275755e7df19cab1cf20fb1b7aaf176c61)

src/WINNT/afsd/smb.c
src/WINNT/afsd/smb3.c

index e3061aff639138d6b86d069c98a2fbc3cadbdb3a..88f75dba6331f0e1edae830ff44e53ad0d174f33 100644 (file)
@@ -4389,7 +4389,7 @@ long smb_ReceiveCoreSearchDir(smb_vc_t *vcp, smb_packet_t *inp, smb_packet_t *ou
                                                       scp->bulkStatProgress)) {
                     /* Don't bulk stat if risking timeout */
                     int now = GetTickCount();
-                    if (now - req.startTime > RDRtimeout) {
+                    if (now - req.startTime > RDRtimeout * 1000) {
                         scp->bulkStatProgress = thyper;
                         scp->flags &= ~CM_SCACHEFLAG_BULKSTATTING;
                         dsp->flags &= ~SMB_DIRSEARCH_BULKST;
index 2680215b6c4d6100573503841e8dd0dfb553bbdb..eba779addb45dbb76bee3755d18054b7a52aea44 100644 (file)
@@ -4978,7 +4978,7 @@ long smb_ReceiveTran2SearchDir(smb_vc_t *vcp, smb_tran2Packet_t *p, smb_packet_t
                     LargeIntegerGreaterThanOrEqualTo(thyper, scp->bulkStatProgress)) {
                     /* Don't bulk stat if risking timeout */
                     DWORD now = GetTickCount();
-                    if (now - req.startTime > RDRtimeout) {
+                    if (now - req.startTime > RDRtimeout * 1000) {
                         scp->bulkStatProgress = thyper;
                         scp->flags &= ~CM_SCACHEFLAG_BULKSTATTING;
                         dsp->flags &= ~SMB_DIRSEARCH_BULKST;