flutter_ssh
flutter_ssh copied to clipboard
session.setTimeout(60000);
Greetings,
Is there a way to implement session timeout?
I know that in jsch you can invoke: session.setTimeout(60000);
Hi, yes this would be very useful.
As a workaround for android devices, you can have the following at line 246 at SshPlugin.java
session.setConfig(properties);
session.setTimeout(10000);
session.connect();
So every session will have a timeout of 10 secs.
For IOS, it seems to have a default timeout of 10 secs.
NSString* response = [session.channel execute:command error:&error timeout:@10];