You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2023/04/11 18:35:00 UTC

[jira] [Commented] (PROTON-2709) Settle delivered messages in the C sender example

    [ https://issues.apache.org/jira/browse/PROTON-2709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17711081#comment-17711081 ] 

ASF subversion and git services commented on PROTON-2709:
---------------------------------------------------------

Commit 703b7b8f2b04f6e1196992787bdd113aa4862a6a in qpid-proton's branch refs/heads/main from Danis Ozdemir
[ https://gitbox.apache.org/repos/asf?p=qpid-proton.git;h=703b7b8f2 ]

PROTON-2709: [C examples] Settle deliveries in sender example

If the delivery object is not settled on the sender side, the delivery
object does not get returned to the pool of the link.

Without the proposed fix, this code will mislead people and the code
written based on this example will cause memory exhaustion in the long run.


> Settle delivered messages in the C sender example
> -------------------------------------------------
>
>                 Key: PROTON-2709
>                 URL: https://issues.apache.org/jira/browse/PROTON-2709
>             Project: Qpid Proton
>          Issue Type: Improvement
>          Components: proton-c
>            Reporter: Andrew Stitcher
>            Assignee: Andrew Stitcher
>            Priority: Major
>
> Although it's not needed in the example because the link is fairly short lived and so doesn't create excessive memory use, the sender should settle the delivery when the message is accepted so as to free all memory resources associated with it. This is necessary for a long lived sender and so the example should show this.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org