From ddafd959fa25e834e76b84f841f16a3fcab4da0e Mon Sep 17 00:00:00 2001 From: Jeff Tao Date: Tue, 28 Jul 2020 09:35:21 +0000 Subject: [PATCH] tune the delay --- src/sync/src/syncRetrieve.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sync/src/syncRetrieve.c b/src/sync/src/syncRetrieve.c index b3908d2c57..8aa7d101e7 100644 --- a/src/sync/src/syncRetrieve.c +++ b/src/sync/src/syncRetrieve.c @@ -477,8 +477,8 @@ void *syncRetrieveData(void *param) if (pPeer->fileChanged) { // if file is changed 3 times continuously, start flow control pPeer->numOfRetrieves++; - if (pPeer->numOfRetrieves >= 3 && pNode->notifyFlowCtrl) - (*pNode->notifyFlowCtrl)(pNode->ahandle, 1 << (pPeer->numOfRetrieves - 3)); + if (pPeer->numOfRetrieves >= 2 && pNode->notifyFlowCtrl) + (*pNode->notifyFlowCtrl)(pNode->ahandle, 4 << (pPeer->numOfRetrieves - 2)); } else { pPeer->numOfRetrieves = 0; if (pNode->notifyFlowCtrl) -- GitLab