[Devel] [ openser-Bugs-1684036 ] PRESENCE module and multiple transports issue

SourceForge.net noreply at sourceforge.net
Tue Mar 20 01:26:49 CET 2007


Bugs item #1684036, was opened at 2007-03-20 00:26
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1684036&group_id=139143

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: ver 1.2.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Aron Rosenberg (amr42)
Assigned to: Nobody/Anonymous (nobody)
Summary: PRESENCE module and multiple transports issue

Initial Comment:
The new PRESENCE module does not seem to take into account the transport, socket or port that a user iniated the SUBSCRIBE on. Consider the following two scenarios that appear to be broken

Server Setup:

IP: 1.1.1.1 udp port 5060
IP: 1.1.1.1 udp port 5062
IP: 1.1.1.1 tcp port 5060

User A connects to the server on 1.1.1.1 udp port 5060, and requests a SUBSCRIBE to User A (himself) and User B


User B connects to the server on 1.1.1.1 tcp port 5060, and requests a SUBSCRIBE to USER A and USER B (himself)


If User A sends a PUBLISH (with 1.1.1.1 udp port 5060), then the subsequent NOTIFY's (to A and B) will go out on 1.1.1.1 udp port 5060 even though User B requested the SUBSCRIPTION via tcp port 5060.

If User B sends a PUBLISH (with 1.1.1.1 tcp port 5060), then both subsequent NOTIFY's will be sent via 1.1.1.1 tcp port 5060.

Summary: Presence module is not saving the transport that the subscribe arrived on and is not using that detail to send out the NOTIFY.

Solution: Add a new column to the active_watchers table called socket (exactly like REGISTRAR module has with location table) and store the incoming socket for the SUBSCRIBE request. This socket would then need to be used when sending out a NOTIFY request.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1684036&group_id=139143



More information about the Devel mailing list