Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Reconnection after lost network connection
Sun, Apr 23 2006 2:13 PMPermanent Link

"Simon Temlett"
I have an application that acts as a client to the DBISAM server over a VPN.
Due to the nature of the vpn, sometimes the connection is lost for a period.

What is the correct way of creating a new session?  The old session will
have been tidied up by the server having dead session expiration set to
120secs and the cleanup interval to 30secs.

I'm currently trying to set the active property of the session to false and
then back to true.  This however seems to cause the machine to eventually
run out of virtual memory and no new session is created.

I'm using version 4.22 BTW.

Best regards,

Simon

Mon, Apr 24 2006 9:19 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Simon,

<< I have an application that acts as a client to the DBISAM server over a
VPN. Due to the nature of the vpn, sometimes the connection is lost for a
period.

What is the correct way of creating a new session?  The old session will
have been tidied up by the server having dead session expiration set to
20secs and the cleanup interval to 30secs.

I'm currently trying to set the active property of the session to false and
then back to true.  This however seems to cause the machine to eventually
run out of virtual memory and no new session is created. >>

Make sure that you have a TDBISAMSession.OnRemoteReconnect event handler set
up for the session:

http://www.elevatesoft.com/dbisam4d5_tdbisamsession_onremotereconnect.htm

and make sure to set the Continue parameter to False once you're ready to
shut down the session by setting its Active property to False.  The best way
to handle this is to set a global variable before setting Active to False,
and then examine this variable in the OnRemoteReconnect event handler.  That
will allow for a controlled shutdown, and then you can set the Active
property to True again to reestablish the connection.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image