https://github.com/apache/mina-sshd/blob/master/docs/changes/2.9.2.md
Change-Id: I7bc6d261e0666929abde410cad64cfaabf8506e8
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit
6bac0befd20952fc07aab28b9575b690a04c0f06)
NetconfCallHomeServer(final SshClient sshClient, final CallHomeAuthorizationProvider authProvider,
final Factory factory, final InetSocketAddress socketAddress, final StatusRecorder recorder) {
this(sshClient, authProvider, factory, socketAddress, recorder,
- new NettyIoServiceFactory(factory.getNettyGroup()));
+ new NettyIoServiceFactory(sshClient, factory.getNettyGroup()));
}
@VisibleForTesting
if (!isClosing()) {
// TODO: consider using context's allocator for heap buffer here
ctx.fireChannelRead(Unpooled.copiedBuffer(data, off, (int) len));
- adjustWindow(len);
+ getLocalWindow().check();
}
}
// If we're already closing, ignore incoming data
if (!isClosing()) {
LOG.debug("Discarding {} bytes of extended data", len);
- adjustWindow(len);
+ getLocalWindow().check();
}
}
- private void adjustWindow(final long len) throws IOException {
- getLocalWindow().consumeAndCheck(len);
- }
-
@Override
public void close() {
this.close(false);
<dependency>
<groupId>org.apache.sshd</groupId>
<artifactId>sshd-osgi</artifactId>
- <version>2.9.1</version>
+ <version>2.9.2</version>
</dependency>
<dependency>
<groupId>org.apache.sshd</groupId>
<artifactId>sshd-netty</artifactId>
- <version>2.9.1</version>
+ <version>2.9.2</version>
<exclusions>
<exclusion>
<groupId>org.apache.sshd</groupId>