Resolved - I just need to execute my code in another thread.
Next time I'll read all the javadoc... -_-
/**
* Starts the shell.
* All streams must have been set before calling this method.
* The command should implement Runnable, and this method
* should spawn a new thread like:
* <pre>
* {@code
* Thread(this).start();
* }
* </pre>
*
* @param env
* @throws java.io.IOException
*/
void start(Environment env) throws IOException;
2011/8/31 Frédéric Menou <[email protected]>
> Hi,
>
> I'm building a small SSH server to handle some ssh commands but my commands
> are stuck, waiting for bytes from client.
>
> SSH connection is ok. My commands are triggered but any call to
> input.read() (where input is the InputStream provided by Mina) is waiting
> for data.
>
> My client is git over ssh. I'm about to test with a simpler client in order
> to debug but maybe someone here could give me a hit !
> I'm also browsing gerrit codebase because they have already made it work
> (obviously).
>
> FYI I'm using SSHD 0.5.0
>
> Regards
> --
> Frédéric Menou
>
>
>
--
Frédéric Menou