[VSRV][V4RB] connection status

Ruslan Zasukhin sunshine at public.kherson.ua
Mon Sep 1 10:54:11 CDT 2003


on 9/1/03 10:09, Tim Davis at timdavis at amug.org wrote:

Hi Tim,

>>>   I'm looking for a graceful way to reconnect after connection
>>> timeout. I'm having trouble getting verification that the connection
>>> has been dropped. How does each client app test its database
>>> connection?
>> 
>> Well, let's think.
>> 
>> When we open db on disk, we check if it is opened using
>>     db.IsOpen()
>> For remote access we can use IsOpen() to check connection status.
>> Igor, agree?
>> Tim, am I right?
> 
> If I understand, you are suggesting a new boolean function "IsOpen" to
> test the connection. Yes, that is what I'm looking for.

In fact this function (or property) exists Vdatabase.IsOpen
Igor just need make it for Client working as test of connection.

> I do want to use a client connection timeout. The client app may
> attempt more activities after timeout and I want to reconnect a
> connection if dropped. Before each database action I ask db.IsOpen, if
> false call db.Open, then continue the action.

I wonder...if do this BEFORE EACH operation, then
Check of connection must be very fast operation!
Igor, is this to be a case?


>> You have stick into case that server have disconnect a client in case
>> of
>> long idle?
>> Igor this already works as I know, yes?
>> What timeout on default?
>> As I understand this can be managed in the ini file, yes?
>> And can a developer set NO TIMEOUT?  I.e. Very long timeout?
> 
> Does a timeout of zero have no timeout? I think that would be a good
> way to specify it, (if the situation calls for it).

I agree!

-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list