Libor Svehlak created SSHD-1343:
-----------------------------------
Summary: org.apache.sshd.server.channel.ChannelDataReceiver
documentation issue
Key: SSHD-1343
URL: https://issues.apache.org/jira/browse/SSHD-1343
Project: MINA SSHD
Issue Type: Bug
Affects Versions: 2.15.0
Reporter: Libor Svehlak
JavaDoc on
https://github.com/apache/mina-sshd/blob/master/sshd-core/src/main/java/org/apache/sshd/server/channel/ChannelDataReceiver.java
states that if {{data()}} method queues received data then once data are
really consumed there has to be called
{{channel.getLocalWindow().consumeAndCheck(len)}}}. There are several issues
with this statement:
* Method {{consumeAndCheck(len)}} was removed in version 2.92. (commit
0c8f9b22c3f4f26f4061210b6b9dd6ef729c9b97) => documentation is incorrect
* Even when we we call {{consume(len)}} method, it seems that window size is
not changed. Calling {{release(len)}} seems to fix this => is it the right
approach?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]