[V4Rb] Checking for server timeout

Ruslan Zasukhin sunshine at public.kherson.ua
Sun Jan 22 18:49:51 CST 2006


On 1/22/06 6:22 PM, "Charles Yeomans" <yeomans at desuetude.com> wrote:

Hi Charles,
 
>>> When connecting to a remote database, does VDatabase.IsOpen return
>>> false if the connection to the server has timed out due to inactivity?
>> 
>> Not sure, but I think yes, because
>> 
>>     * Server have close connection for non-active client
>>         e.g. 5 minutes later.
>> 
>>     * client become aware about problem on its next attempt touch
>> socket
>>         so e.g. 30 minutes later. Any first command client execute
>>         will throw error.
> 
> What I was doing was just checking for error &h82509, "Connection timed
> out".  Sometimes I get this error, but sometimes the result of
> attempting a connection is a stream read error.
 
> I'll try VDatabase.IsOpen and see what happens.

Okay, 

For your info and info of all Vserver  developers.

Right now our primary task is to CHANGE protocol of Vserver.
This is main task for 2.2 release.

Current protocol is weak from point of view error-resistance.
We going to use new protocol which should simply remove these STREAM ERRORs


-------------------
Another step we do in this regard is:

    Valentina put on protocol a lots of API methods.
    we name this as reach protocol.

Up to now this was manual work. We have found relatively easy way to
automate this. So we have big hope that 2.2 release will increase a lots
stability of Vserver protocol.

Except of above, new protocol solve other major tasks:
    the main is: ability to future extend commands and that old
    server and clients still are able work with newer server clients.


-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]




More information about the Valentina mailing list