EldoS | Feel safer!

Software components for data protection, secure storage and transfer

limit tunnel count

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
#15626
Posted: 01/28/2011 06:48:57
by farsiplan (Basic support level)
Joined: 01/03/2011
Posts: 13

how can I limit tunnel connections number in "local port forwarding" ?
thanks
#15627
Posted: 01/28/2011 06:51:32
by Ken Ivanov (EldoS Corp.)

Could you please clarify whether you are asking about client or server components?
#15633
Posted: 01/28/2011 12:06:13
by farsiplan (Basic support level)
Joined: 01/03/2011
Posts: 13

in Client side.
#15635
Posted: 01/28/2011 12:12:09
by Ken Ivanov (EldoS Corp.)

You can handle the TElSSHLocalPortForwarding.OnAccept event and reject all the connection requests if the number of active tunnels exceeds some threshold value.
#15636
Posted: 01/28/2011 14:54:08
by farsiplan (Basic support level)
Joined: 01/03/2011
Posts: 13

TunnelCount property in "local port forwarding" component don't work correctly, and always return 1.

SecureBlackbox - version 8.1.192 (VCL)
#15637
Posted: 01/28/2011 15:02:51
by Ken Ivanov (EldoS Corp.)

Yes, it returns 1 unless you are forwarding more than one port.
#15646
Posted: 01/29/2011 14:06:08
by farsiplan (Basic support level)
Joined: 01/03/2011
Posts: 13

so, which property does return number of connections ?
#15647
Posted: 01/29/2011 14:32:36
by Ken Ivanov (EldoS Corp.)

There's no such property. Please use OnConnectionOpen and OnConnectionClose events to track connection opens and closures. This way, the number of active forwarded TCP connections will be equal to the difference between the number of opens and closures.
#15667
Posted: 02/01/2011 12:35:30
by farsiplan (Basic support level)
Joined: 01/03/2011
Posts: 13

thanks for your answers.
and finally, does "local port forwarding" have ability to hold a "forwarding connection" and release it when we want.
if not, could you please tell another way to do this.
because I don't want to reject a connection that exceeds from threshold value , and want to keep it in queue
#15671
Posted: 02/02/2011 05:11:06
by Ken Ivanov (EldoS Corp.)

Sorry, this feature is not available at the moment. Actually, your goal is hardly achievable from technical point of view. Once incoming socket connection is accepted, the party can start sending data (even though the forwarding channel itself is not ready). I.e. the component will have to cache these data somewhere until the channel is created, consuming extra memory resources.
Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.

Reply

Statistics

Topic viewed 1268 times

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




|

Back to top

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

Got it!