Merge pull request #30 from SreeramGarlapati/sg.fixRecvrDiscnctIssue

JavaClient: fix memory leak in receive path - settle delivery in proton-j as soon as handing off the message to eventhub receiver
This commit is contained in:
Sreeram Garlapati 2016-02-04 21:06:11 -08:00
Родитель a7db223eb1 e31b43503d
Коммит b31894a9a8
1 изменённых файлов: 2 добавлений и 8 удалений

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

@ -175,15 +175,9 @@ public final class ReceiveLinkHandler extends BaseLinkHandler
msg.decode(buffer, 0, read);
messages.add(msg);
delivery.settle();
if (receiveLink.advance())
{
delivery = receiveLink.current();
}
else
{
break;
}
delivery = receiveLink.current();
}
if (messages != null && messages.size() > 0)