tune the delay
This commit is contained in:
parent
2a3c831e3f
commit
ddafd959fa
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue