Ticket #25 (accepted enhancement)

Opened 20 months ago

Last modified 6 months ago

[Clustering] Allow session manager to bind to router as seperate id

Reported by: smoku Owned by: smoku
Priority: major Component: General
Version: 2.1 Keywords:
Cc: Tracforge_linkmap:
Blocking: Blocked By:

Description

This patch is intended to allow the session manager to bind to the local router as an id (eg 'sm') seperate from the primary domain (eg, 'example.net'). This is settable in the run-time config file by use of the 'router_id' tag; the behaviour set by this patch does not change normal operation of the session manager.

The goal of this patch is to allow a future clustering component to bind to the local router as the primary domain, and route packets for JIDs@… to other nodes within the cluster as required, without confusing the local session manager or the clients.

Changes are to three files:

sm/main.c - Read in the 'router_id' value from the configuration file. sm/sm.h - Add the 'router_id' value to the sm_st definition. sm/sm.c - Send packets to the router using 'sm->router_id' instead of 'sm->id'

Attachments

sm-id.patch (3.8 KB) - added by smoku 20 months ago.
Patch by Bruce Campbell <jabberd-bugzilla@…>
sm-id.2.patch (4.0 KB) - added by markdoliner 13 months ago.
An alternate patch

Change History

Changed 20 months ago by smoku

Patch by Bruce Campbell <jabberd-bugzilla@…>

Changed 19 months ago by smoku

  • summary changed from Allow session manager to bind to router as seperate id (cluster) to [Clustering] Allow session manager to bind to router as seperate id

Changed 13 months ago by markdoliner

I've attached an alternate patch to the first one. It uses the syntax suggested on Clustering, which seems more natural to me: <id realm="example.net">sm</id>

Changed 13 months ago by markdoliner

An alternate patch

Changed 6 months ago by smoku

  • status changed from new to accepted

Patch merged to branches/clustering

Note: See TracTickets for help on using tickets.