- cfg.getConnectionTimeoutMillis());
- } else {
- // LinkedHashSet since perhaps the device cares about order of hello message capabilities.
- // This allows user control of the order while complying with the existing interface.
- final Set<String> stringCapabilities = new LinkedHashSet<>();
- for (final Uri uri : odlHelloCapabilities) {
- stringCapabilities.add(uri.getValue());
- }
- return new NetconfClientSessionNegotiatorFactory(timer, cfg.getAdditionalHeader(),
- cfg.getConnectionTimeoutMillis(), stringCapabilities);
+ cfg.getConnectionTimeoutMillis(), cfg.getMaximumIncomingChunkSize());
+ }
+
+ // LinkedHashSet since perhaps the device cares about order of hello message capabilities.
+ // This allows user control of the order while complying with the existing interface.
+ final Set<String> stringCapabilities = new LinkedHashSet<>();
+ for (final Uri uri : odlHelloCapabilities) {
+ stringCapabilities.add(uri.getValue());