You are viewing a plain text version of this content. The canonical link for it is here.
Posted to proton@qpid.apache.org by "Ken Giusti (JIRA)" <ji...@apache.org> on 2014/02/13 14:01:19 UTC

[jira] [Assigned] (PROTON-516) [proton-c] Dispatcher frame buffer set to peer's max frame size.

     [ https://issues.apache.org/jira/browse/PROTON-516?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ken Giusti reassigned PROTON-516:
---------------------------------

    Assignee: Ken Giusti

> [proton-c] Dispatcher frame buffer set to peer's max frame size.
> ----------------------------------------------------------------
>
>                 Key: PROTON-516
>                 URL: https://issues.apache.org/jira/browse/PROTON-516
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: proton-c
>    Affects Versions: 0.6
>            Reporter: Ken Giusti
>            Assignee: Ken Giusti
>             Fix For: 0.7
>
>
> The size of the output frame buffer used by the Transport is set unconditionally to the max frame size advertised by the peer:
> In transport.c::int pn_do_open(pn_dispatcher_t *disp):
>    pn_buffer_ensure( disp->frame, disp->remote_max_frame );
> This can potentially exhaust memory on small memory systems (eg, embedded devices).  Instead, the output frame buffer should grow as needed based on the size of the payloads generated, limited by the remote_max_frame value.
> And, of course, pn_buffer_ensure + caller should handle realloc failures instead of ignoring them.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)