FixBug: flow receiver credit only if it falls below prefetchCount
This commit is contained in:
Родитель
3822a606d7
Коммит
5f00045c57
|
@ -85,7 +85,10 @@ public final class ReceiveLinkHandler extends BaseLinkHandler
|
|||
}
|
||||
}
|
||||
|
||||
receiver.flow(this.msgReceiver.getPrefetchCount());
|
||||
if (receiver.getCredit() < this.msgReceiver.getPrefetchCount())
|
||||
{
|
||||
receiver.flow(this.msgReceiver.getPrefetchCount() - receiver.getCredit());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче