Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 03-23-2006
Nis Baggesen Nis Baggesen is offline
Registered User
 
 
Join Date: Aug 2004
Location: Aarhus, Denmark
Posts: 112
Glacier2 forwarding policy problems

I've played around with setting up forwarding policies for my proxies, but I encountered a couple of problems, presumably because I don't understand the system well enough.

The main issue is that I have a number of push updates from server to client, that are send as oneway messages, and thus should logically be forwarded as oneway requests as well. But if I add _fwd=O to the default context of my server, the client never gets these pushed updates. I can see the calls in the Glacier2 trace, but they never seem to reach the client. Glacier isn't reporting any errors.

If I set the server side forwarding policy to _fwd=t explicitly (This is the default policy as far as I could see) the calls do get through, but now they no longer seem to appear in my Glacier2 traces.

I was also unsure where I was actually supposed to set the forwarding policy. The proxy which is used to push the updates is created on the client and then send to the server. So would it be possible to set the forwarding policy when the proxy is created on the client, or does it have to be set serverside? Basically I'm wondering if a default context on a proxy is transmitted when the proxy is transmitted.

I haven't investigated this very deeply, as it isn't a terribly high priority right now, but if I'm doing something obviously wrong, a hint would be appreciated.
__________________
Nis Haller Baggesen
Lead Programmer
Company: Runestone Game Development (www.runestone.dk)
Project: Seed (MMORPG) (www.seedthegame.com)
Reply With Quote
  #2 (permalink)  
Old 03-23-2006
Nis Baggesen Nis Baggesen is offline
Registered User
 
 
Join Date: Aug 2004
Location: Aarhus, Denmark
Posts: 112
Forget this, I think most of my current problems are adequately explained by the fact that I had accidentally configured an endpoint for my client.
__________________
Nis Haller Baggesen
Lead Programmer
Company: Runestone Game Development (www.runestone.dk)
Project: Seed (MMORPG) (www.seedthegame.com)

Last edited by Nis Baggesen : 03-23-2006 at 05:37 AM.
Reply With Quote
  #3 (permalink)  
Old 03-23-2006
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,540
Quote:
Originally Posted by Nis Baggesen
I've played around with setting up forwarding policies for my proxies, but I encountered a couple of problems, presumably because I don't understand the system well enough.

The main issue is that I have a number of push updates from server to client, that are send as oneway messages, and thus should logically be forwarded as oneway requests as well. But if I add _fwd=O to the default context of my server, the client never gets these pushed updates. I can see the calls in the Glacier2 trace, but they never seem to reach the client. Glacier isn't reporting any errors.
I can't think of any reasons why this wouldn't work. If you use the buffered mode and correctly set the _fwd=O context on the proxy in the server, Glacier2 should forward the oneways in batches.

Quote:
If I set the server side forwarding policy to _fwd=t explicitly (This is the default policy as far as I could see) the calls do get through, but now they no longer seem to appear in my Glacier2 traces.
They should appear in the Glacier2 traces, if they don't this means that the calls are sent directly to the client. See the other post , you could enable network tracing on the server to ensure that your server is only establishing connections to Glacier2, not to your clients.

Quote:
I was also unsure where I was actually supposed to set the forwarding policy. The proxy which is used to push the updates is created on the client and then send to the server. So would it be possible to set the forwarding policy when the proxy is created on the client, or does it have to be set serverside? Basically I'm wondering if a default context on a proxy is transmitted when the proxy is transmitted.

I haven't investigated this very deeply, as it isn't a terribly high priority right now, but if I'm doing something obviously wrong, a hint would be appreciated.
No, you can't set it in the client, the default context isn't transmitted over the wire with the proxy. Setting it in the client would be wrong anyway since a rogue client could change the default forwarding policy. You should set it in the server. If your server only makes invocations on clients (through Glacier2) the easiest is probably to set the default context on the communicator, otherwise, you should set the default context for each proxy from the client.

Cheers,
Benoit.
Reply With Quote
  #4 (permalink)  
Old 03-23-2006
Nis Baggesen Nis Baggesen is offline
Registered User
 
 
Join Date: Aug 2004
Location: Aarhus, Denmark
Posts: 112
Yup. Cleaning up the endpoint settings in my client helped me to resolve alle the other problems. As far as I can tell from the logs I am now using oneway batched dispatch in my push updates, just as I wanted.
__________________
Nis Haller Baggesen
Lead Programmer
Company: Runestone Game Development (www.runestone.dk)
Project: Seed (MMORPG) (www.seedthegame.com)
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
dynamic balancing policy Greenhippo Help Center 3 12-06-2006 06:13 PM
Efficient (and simple?) forwarding of ice invocations sylvain Help Center 2 07-18-2006 10:26 AM
Question of forwarding ObjectPrx in Servant Locator kongchoy Help Center 6 02-17-2006 08:26 PM
Communication problems between Glacier2 router & PermissionVerifier & SessionManager Nis Baggesen Help Center 22 02-07-2006 09:12 AM
Help on Glacier2 and port forwarding!!! soloman817 Help Center 3 03-31-2005 11:02 PM


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