I'm using a DirectTCPIP channel, and I cannot seem to get the flow control working properly. I use jsch to provide Input and OutputStreams to my program. For some reason using channel.getInputStream() and getOutputStream() don't work. (I get -1 when I try to read from the Input.)
It works by providing PipedInput and PipedOutputStreams to channel.setInputStream. The problem comes when the thread that reads from the InputStream does a read and then does a bunch of writes. If the client on the other end pumps a bunch of writes to my program, the pipe buffer fills and blocks the message processor thread of the channel, which also causes the writes to block and gives me a deadlock. What I really need is to use ssh channel flow control rather than Pipe buffering. I'm I not setting things up properly? Or is flow control not supported? thanx ben ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ JSch-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jsch-users
