tune the delay

This commit is contained in:
Jeff Tao 2020-07-28 09:35:21 +00:00
parent 2a3c831e3f
commit ddafd959fa
1 changed files with 2 additions and 2 deletions

View File

@ -477,8 +477,8 @@ void *syncRetrieveData(void *param)
if (pPeer->fileChanged) { if (pPeer->fileChanged) {
// if file is changed 3 times continuously, start flow control // if file is changed 3 times continuously, start flow control
pPeer->numOfRetrieves++; pPeer->numOfRetrieves++;
if (pPeer->numOfRetrieves >= 3 && pNode->notifyFlowCtrl) if (pPeer->numOfRetrieves >= 2 && pNode->notifyFlowCtrl)
(*pNode->notifyFlowCtrl)(pNode->ahandle, 1 << (pPeer->numOfRetrieves - 3)); (*pNode->notifyFlowCtrl)(pNode->ahandle, 4 << (pPeer->numOfRetrieves - 2));
} else { } else {
pPeer->numOfRetrieves = 0; pPeer->numOfRetrieves = 0;
if (pNode->notifyFlowCtrl) if (pNode->notifyFlowCtrl)