From 0447f10395689e924248874e9ca123d1cbf92ec2 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Thu, 16 Nov 2023 13:11:24 -0800 Subject: [PATCH] [ntcore] Increase client meta-topic decoding limit It's not uncommon to have more than 1000 publishers or subscribers on a particular client, so bump that limit to 10000. --- ntcore/src/main/native/cpp/ntcore_meta.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ntcore/src/main/native/cpp/ntcore_meta.cpp b/ntcore/src/main/native/cpp/ntcore_meta.cpp index 05cb4b7b3df..3b947a01fde 100644 --- a/ntcore/src/main/native/cpp/ntcore_meta.cpp +++ b/ntcore/src/main/native/cpp/ntcore_meta.cpp @@ -39,7 +39,7 @@ std::optional> nt::meta::DecodeClientPublishers( std::span data) { mpack_reader_t r; mpack_reader_init_data(&r, data); - uint32_t numPub = mpack_expect_array_max(&r, 1000); + uint32_t numPub = mpack_expect_array_max(&r, 10000); std::vector publishers; publishers.reserve(numPub); for (uint32_t i = 0; i < numPub; ++i) { @@ -71,7 +71,7 @@ std::optional> nt::meta::DecodeClientSubscribers( std::span data) { mpack_reader_t r; mpack_reader_init_data(&r, data); - uint32_t numSub = mpack_expect_array_max(&r, 1000); + uint32_t numSub = mpack_expect_array_max(&r, 10000); std::vector subscribers; subscribers.reserve(numSub); for (uint32_t i = 0; i < numSub; ++i) {