FixBug: flow receiver credit only if it falls below prefetchCount

This commit is contained in:
Sreeram Garlapati 2016-02-09 15:00:17 -08:00
Родитель 3822a606d7
Коммит 5f00045c57
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -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());
}
}
}