Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 03-14-2005
chuatecksiong chuatecksiong is offline
Registered User
 
Name: chuatecksiong
Organization: chuatecksiong
Project: none
 
Join Date: Jan 2005
Posts: 8
Question Problem With ICE BiDir in v2.1.0

Ice now supports bi-directional Connections. I have converted one of my Ice Connections to utilitize the bi directional connection, but encounter some problems.

my senerio.
2 servers A and B, and Client C.

Client C connects to Server A. Establish a callback to Server A. (As what is done in the example).
B Connects to Server A. Creates a DataObject Proxy and passed it to Server A.
Server A upon receiving the DataObject, passes it to Client C via the bidir callback.
Client C, upon receiving the DataObject, calls a function on the DataObject, and never returns.

Upon Debugging, it is found that the ICE Communication between Client C and Server B is already Established. Client C would Invoke The Function at Server B (which already returns) but for Client C, it Function never returns and all communication on Client C Just Hangs there.

Previously, Client C creates it own callback proxy to hand it to Server A and it works fine.

further debugging reveals that Client C is waiting for notification but Server B already writes the return through the communication channel.

Last edited by chuatecksiong : 03-14-2005 at 06:33 AM. Reason: Addition
Reply With Quote
  #2 (permalink)  
Old 03-14-2005
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,781
Most likely you have not enough threads configured. For dispatching callbacks using the new the bi-dir mechanism, the client-side thread pool is used (because the connection over which the callback is received is an outgoing connection that has been established from the client to the server).

Try to increase the number of threads in the client-side pool with the properties Ice.ThreadPool.Client.Size and Ice.ThreadPool.Client.SizeMax. The default is just one thread.
Reply With Quote
  #3 (permalink)  
Old 03-14-2005
chuatecksiong chuatecksiong is offline
Registered User
 
Name: chuatecksiong
Organization: chuatecksiong
Project: none
 
Join Date: Jan 2005
Posts: 8
Thanks! Its working now.
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
IceGrid and bidir albertods Help Center 1 11-18-2006 03:47 PM
memory cost of bidir kan Help Center 8 11-04-2005 08:46 AM
problem with demo bidir kan Help Center 5 10-31-2005 03:41 AM
Questions about the Demos: Bidir and Callback surfer Help Center 4 09-23-2005 09:31 AM
Question about the bidir demo program umber Help Center 2 07-21-2005 03:16 PM


All times are GMT -4. The time now is 08:07 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.