[
https://issues.apache.org/jira/browse/PROTON-1846?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16617430#comment-16617430
]
ASF GitHub Bot commented on PROTON-1846:
----------------------------------------
GitHub user marcelmeulemans opened a pull request:
https://github.com/apache/qpid-proton/pull/155
PROTON-1846: allow more than 65536 nodes in a pn_data_t instance
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/marcelmeulemans/qpid-proton fix/PROTON-1846
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/qpid-proton/pull/155.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #155
----
commit 28f3b60841f3dbe96f81a77c509fd4ec9e571631
Author: Marcel Meulemans <mm@...>
Date: 2018-09-17T12:15:13Z
PROTON-1846: allow more than 65536 nodes in a pn_data_t instance
----
> [proton-c] Message decode fails with PN_OUT_OF_MEMORY if there are large
> lists in the message
> ----------------------------------------------------------------------------------------------
>
> Key: PROTON-1846
> URL: https://issues.apache.org/jira/browse/PROTON-1846
> Project: Qpid Proton
> Issue Type: Bug
> Components: proton-c
> Affects Versions: proton-c-0.22.0
> Reporter: Ganesh Murthy
> Priority: Major
> Attachments: send_large_structured_body.js
>
>
> Steps to reproduce -
>
> # Start the Qpid Dispatch router
> # Run the following script that creates a bunch of addresses
> # for i in `seq 1 6546`; do echo
> "\{\"prefix\":\"address-$i\",\"distribution\":\"balanced\"}" | qdmanage
> CREATE --type=org.apache.qpid.dispatch.router.config.address --name
> address-$i --stdin; done
> # now run qdmanage QUERY --type=address
> # You will receive a Data error (-10)
> The following diff seems to fix the issue
> diff --git a/c/src/core/data.h b/c/src/core/data.h
> index 94dc7d67..f4320e2a 100644
> --- a/c/src/core/data.h
> +++ b/c/src/core/data.h
> @@ -27,7 +27,7 @@
> #include "decoder.h"
> #include "encoder.h"
>
> -typedef uint16_t pni_nid_t;
> +typedef uint32_t pni_nid_t;
> #define PNI_NID_MAX ((pni_nid_t)-1)
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]