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 e3061af..88f75db 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 2680215..eba779a 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;