Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 02-26-2007
AaronIct AaronIct is offline
Registered User
 
Name: wang yang
Organization: ICT
Project: DBroker
 
Join Date: Apr 2005
Location: China
Posts: 9
Send a message via MSN to AaronIct
-->
What will the clients do when the servers be killed?

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 !!!
Reply With Quote
  #2 (permalink)  
Old 02-26-2007
benoit's Avatar
benoit benoit is online now
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,543
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.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hot to connet two clients that all are private IP or behind the firewall? level Help Center 0 03-06-2006 10:01 PM
SSL support for Java clients? annekat Help Center 12 04-18-2005 10:49 PM
Ice and stateless servers zet Help Center 2 12-01-2004 04:06 AM
icestorm max clients diddek Help Center 1 10-18-2004 05:45 PM
Clients in server jpm Help Center 5 06-17-2003 07:21 PM


All times are GMT -4. The time now is 11:53 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.