|
|
|
|||||
|
timeout
Hi,
could I ask to clarify how timeouts work. I wrote a small test in which the client calls a server method (Linux, gcc 3.2.3). On the client side (implemented via Ice::Application) I set up the timeout of 2 sec. The server method contains 'sleep(20)' to sleep 20 sec. When I run the client I do get the Ice::TimeoutException in 2 sec but after this the program hangs up and doesn't respond even on Ctrl-C during remaining 18 sec. Is it intended behaviour ? How can I force the client to exit ? Thanks, Nikolai |
|
|||||
|
Hi Marc,
thanks, your advice to increase the server side thread pool helped. Although not exactly as you recommended. My server is implemented as Ice::Service and when I set 'Ice.ThreadPool.Server.Size=2' ('Ice.Server.ThreadPool.Size' was a mistyping) I got the flollowing message: warning: thread pool 'Ice.ThreadPool.Server' is running low on threads Size=2, SizeMax=2, SizeWarn=1 So, I decided that Ice::Service already runs more than one thread and increased Ice.ThreadPool.Server.Size significantly. It helped. Two more questions: 1. What is the default number of threads for Ice::Service ? 2. What's the meaning of the parameters returned in the above warning message ? In particular, how 'SizeWarn' is calculated ? This parameter is important for me because I can estimate the load of my server and want to set a reasonable value to SizeWarn, but I can do it for 'SizeMax' only. Cheers, Nikolai |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Ice.Override.Timeout / ice_timeout() | mario | Help Center | 3 | 04-23-2008 03:23 AM |
| is there a timeout during checkedCast? | leya | Help Center | 9 | 09-05-2006 08:45 AM |
| response timeout? | David | Help Center | 3 | 06-21-2006 05:03 AM |
| Icepack registry "TimeOut" exception with heavy load | eaglecn | Help Center | 1 | 05-26-2006 01:02 AM |
| idle timeout and IceSSL | nsns | Bug Reports | 7 | 01-26-2005 04:41 AM |