EldoS | Feel safer!

Software components for data protection, secure storage and transfer

SSH Tunnel Inactivity

Posted: 11/01/2011 04:30:16
by Vsevolod Ievgiienko (Team)

Posted: 11/01/2011 05:43:10
by jiins (Standard support level)
Joined: 06/27/2011
Posts: 14

Thanks. I'm trying it but I can't figure out how to do it, as those properties are reset at every connectionOpen (or so it seems).

I guess I'll just look at the TotalBytesSent and make a wild assumption on what can be deemed as pseudo-idle...

Unless you have other ideas!

Posted: 11/01/2011 06:01:36
by Vsevolod Ievgiienko (Team)

OnConnectionWork event is fired by ElSSHCustomForwarding consequently from a single forwarded connection loop. You can measure time intervals between calls to this event handler and check if ElSSHForwardedConnection properties values changed between your measurements. If they don't and elapsed time is greater or equal to your custom idle timeout then the connection is also idle.



Topic viewed 2211 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!