Is it possible for a .NET Open Client to check if an AppServer is still running

Hi,
Reference in KB P130121
I am trying to get the code working to check the connection to AppServer. Since the call to the appserver procedure doesn’t return until more than 5 minutes has passed. I think the users will panic before that thinking their device has locked up and reboot. Is there a better method to check the connection to AppServer?
Is there be some sort of timeout in the proxy DLL ?
Kindly advise.
TIA
Philip P Oommen
 
Hi Philip, I think you are looking for these first two timeout settings. The example below is using 10 seconds (rather than the 5 minutes you have observed). The other two settings are different than the initial connection timeout, but they are useful.

// Time out after 10 seconds if network comms with appserver fails.
Progress.Open4GL.RunTimeProperties.RequestWaitTimeout = 10;
Progress.Open4GL.RunTimeProperties.SocketTimeout = 10;

// These two aren't documented, at least not in 10.2A.
// With debug, I can see that the OpenEdge defaults are 1000 retries,
// at 250 milliseconds each. We'll use 1 minute of retries at half
// second intervals here - hopefully that will be reasonable.
Progress.Open4GL.RunTimeProperties.TcpClientRetry = 120;
Progress.Open4GL.RunTimeProperties.TcpClientRetryInterval = 500;
 
Back
Top