The second problem is entirely caused by the way you send and read the data (and consequently by the fact that the server echoes the incoming data). The SSH protocol uses windows for flow-control, so when the remote window is full, the client or server will stop sending more data. To work around the problem, you simply need to make sure the data is consumed. On the client side you simply need to start a thread to read the input stream and it should unblock the server and thus the client sending side.
2014-05-15 7:46 GMT+02:00 Maheedhar <[email protected]>: > HI > > Our requirement is that we send bytes of any size through a server and > handling that will not serve the purpose > > Like u said in the second problem that you pointed out, > > If u feel the problem is because , we are trying to echo the data from the > server side. Is there any other way to do this by avoiding this echo > overhead > > If so,Please point me to the classes that will help me solve the issue. > > Thanks in advance > > Maheedhar > > > > -- > View this message in context: > http://apache-mina.10907.n7.nabble.com/Load-issue-in-apache-SSHD-when-using-ChannelDirectTcpip-tp42155p42178.html > Sent from the Apache MINA User Forum mailing list archive at Nabble.com. >
