Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 07-20-2005
OrNot OrNot is offline
Registered User
 
Name: Bin.Li
Organization: GE Healthcare
Project: Enterprise solution
 
Join Date: Jun 2005
Location: Shanghai
Posts: 157
Send a message via MSN to OrNot
-->
Question about "Ice.MonitorConnections"

hi, there,
In the 39.3.4 , the manual said: For clients that use AMI, we set Ice.MonitorConnections so that AMI
timeouts operate correctly.
I can not understand it very well. Could you pleas give me more explainations about it?

TIA-----OrNot
Reply With Quote
  #2 (permalink)  
Old 07-20-2005
mes's Avatar
mes mes is offline
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 971
Hi,

When you invoke a synchronous operation with a timeout, the Ice run time is able to use the application's thread to block for the specified amount of time and then raise TimeoutException if necessary.

This isn't possible when you invoke an operation asynchronously, because the application's thread doesn't block in the Ice run time. Therefore, if you want your AMI callback object to be notified about a timeout, the Ice run time must use a separate thread that periodically checks the pending requests to see if any of them have timed out. If a timeout occurs, the Ice run time notifies the AMI callback by invoking its ice_exception method with a TimeoutException argument. The Ice.MonitorConnections property determines how frequently this dedicated thread checks the pending requests for timeouts. This thread is also responsible for closing inactive connections, which is where the property derived its name.

Hope that helps,
- Mark
Reply With Quote
  #3 (permalink)  
Old 07-21-2005
OrNot OrNot is offline
Registered User
 
Name: Bin.Li
Organization: GE Healthcare
Project: Enterprise solution
 
Join Date: Jun 2005
Location: Shanghai
Posts: 157
Send a message via MSN to OrNot
-->
So good. Thank you very much.
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
Don't "Ice-3.1.1-VC71.msi " include the "slice2java.exe"? Jason Gao Help Center 4 10-26-2006 12:23 PM
Icepack registry "TimeOut" exception with heavy load eaglecn Help Center 1 05-26-2006 01:02 AM
"Invalid UTF8 string" when transer chinese chars between cpp server and csharp client raygo Help Center 8 03-21-2006 09:34 PM
Question about souce codes "TcpEndpoint::acceptor" OrNot Help Center 6 06-20-2005 09:32 AM
Going from "in" to "out" param, using a class as a union catalin Help Center 1 04-05-2004 09:55 AM


All times are GMT -4. The time now is 10:04 PM.


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.