tomaswolf commented on issue #658:
URL: https://github.com/apache/mina-sshd/issues/658#issuecomment-2636521420

   > Only issue is that sometime outputStream doesn't have data because sever 
takes sometime to process.
   
   That's because you use `ChannelExec.setOut()` and then 
`ByteArrayOutputStream.toString()`. Better: don't call `ChannelExec.setOut()` 
at all. Instead use `ChannelExec.getInvertedOut()` and use a BufferedReader 
around the resturned InputStream and read lines. The read will block until 
there is data available.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to