Allow NetconfChunkAggregator's maximum size to be adjusted 96/102196/1
authorDanielCV <daniel.viswanathan@verizon.com>
Tue, 19 Jul 2022 13:39:05 +0000 (19:09 +0530)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 22 Aug 2022 08:18:22 +0000 (10:18 +0200)
commit38e1e1948e22977b8967d6f166b132652a5f995b
tree043818879ca7dce70b7a11fe705bf175e6682aa1
parent4ba50d15eb89ccdea08f8a3b03079d0b8d8d982a
Allow NetconfChunkAggregator's maximum size to be adjusted

There are devices which send out arbitrarily-large chunks, requiring
a potentially large buffer to hold the incoming message.

This patch allows each instance to have a the chunk size specified
as well as control over the default size via a system property.

JIRA: NETCONF-888
Change-Id: Iec041a4ba9c8886cceb44fa86d07320bb5ae942b
Signed-off-by: DanielCV <daniel.viswanathan@verizon.com>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit b48e597dad44046da6af9ada1b22df0b51aa3a9a)
netconf/netconf-netty-util/src/main/java/org/opendaylight/netconf/nettyutil/AbstractNetconfSessionNegotiator.java
netconf/netconf-netty-util/src/main/java/org/opendaylight/netconf/nettyutil/handler/NetconfChunkAggregator.java