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

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

Commit 91aed9a113adb1e8f403999ecbb39380317b3968 in qpid-proton's branch 
refs/heads/main from Andrew Stitcher
[ https://gitbox.apache.org/repos/asf?p=qpid-proton.git;h=91aed9a11 ]

PROTON-2952: Limit memory use in transfer performatives

* Limit the amount of memory that can be used for messages
  using multiple transfer performative for a single message.
* New transport APIs to set and get the message buffer limit
* A new transport is created with a defauly 4MiB limit
* Any transfer using more buffer space will error


> Multi transfer message deliveries can consume indefinite memory
> ---------------------------------------------------------------
>
>                 Key: PROTON-2952
>                 URL: https://issues.apache.org/jira/browse/PROTON-2952
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: proton-c
>    Affects Versions: proton-c-0.40.0
>            Reporter: Andrew Stitcher
>            Assignee: Andrew Stitcher
>            Priority: Major
>             Fix For: proton-c-0.41.0
>
>
> Proton currently has no limit to  the amount of buffered memory that can be 
> used for a message delivery. This is because deliveries have no limit to the 
> number of transfer performatives that make them up and there's no way to know 
> how many more frames there might be in the delivery, so proton will buffer 
> every message byte in a delivery until it is used.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to