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:
Коммит
b31894a9a8
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче