What will the clients do when the servers be killed?

AaronIctAaronIct Member wang yangOrganization: ICTProject: DBroker
Will the clients catch a exception ?

My programm is simply clients->icepack->servers.The interface ,say CI,was implemented with a bug.This lead to dead-lock in some condition.Once CI is dead-lock,I will kill all the servers.Mostly ,clients catch exceptions.

While sometimes those clients which connect to dead-lock servers still stop at CI after the servers are killed.

Another programm without lock still encounter this problem.

Q:
Is there some settings or method to avoid ?
How to assure clients catch exceptions when servers exit ABNORMALLY?

My env : ice2.1,c++,redhat as4

Many thanks !!!

Comments

  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Hi,

    You should use timeouts to ensure that your client will eventually detect that something went wrong with the network connection to the server (otherwise, depending on the network, operating system, clients might not always detect that the connection to the server is closed.)

    Cheers,
    Benoit.
Sign In or Register to comment.