SSH Serial Connection Hangup - WeOnlyDo Discussion board

SSH Serial Connection Hangup (wodSSH / wodSSH.NET)

by Mike D, Thursday, November 20, 2014, 06:03 (3656 days ago) @ Jasmine

The microcom command itself will create a lock file and can hold the connection waiting for a response. It will lock a Putty session with the same command, only executing ctrl+X and ctrl+C can break out of it. Unfortunately, these commands are not captured in the same way here.

I am trying to create an asynchronous terminal session, similar to Putty, so that the user can enter and receive response freely. Initially i need to automatically execute the create session command. If I set the timeout to 30 seconds to the connection, it will prevent the locked response, however this will be applied to the user's interaction and he will receive the "timeout expired" error if there is a delay in activity.

Is there a way to apply a timeout for an individual command/response, instead of having it globally applied to all commands in a connection?


Complete thread: