Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Openfire
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Openfire
Commits
705864ad
Commit
705864ad
authored
Oct 27, 2014
by
Dave Cridland
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #85 from kost/really-route-all
Really route to all resources
parents
632b3018
0ac3b680
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
RoutingTableImpl.java
src/java/org/jivesoftware/openfire/spi/RoutingTableImpl.java
+7
-3
No files found.
src/java/org/jivesoftware/openfire/spi/RoutingTableImpl.java
View file @
705864ad
...
@@ -534,17 +534,21 @@ public class RoutingTableImpl extends BasicModule implements RoutingTable, Clust
...
@@ -534,17 +534,21 @@ public class RoutingTableImpl extends BasicModule implements RoutingTable, Clust
return
false
;
return
false
;
}
}
// Get the highest priority sessions for normal processing.
List
<
ClientSession
>
highestPrioritySessions
=
getHighestPrioritySessions
(
nonNegativePrioritySessions
);
// Check for message carbons enabled sessions and send the message to them.
// Check for message carbons enabled sessions and send the message to them.
for
(
ClientSession
session
:
nonNegativePrioritySessions
)
{
for
(
ClientSession
session
:
nonNegativePrioritySessions
)
{
// Deliver to each session, if is message carbons enabled.
// Deliver to each session, if is message carbons enabled.
if
(
shouldCarbonCopyToResource
(
session
,
packet
,
isPrivate
))
{
if
(
shouldCarbonCopyToResource
(
session
,
packet
,
isPrivate
))
{
session
.
process
(
packet
);
session
.
process
(
packet
);
// Deliver to each session if property route.really-all-resources is true
// (in case client does not support carbons)
}
else
if
(
JiveGlobals
.
getBooleanProperty
(
"route.really-all-resources"
,
false
))
{
session
.
process
(
packet
);
}
}
}
}
// Get the highest priority sessions for normal processing.
List
<
ClientSession
>
highestPrioritySessions
=
getHighestPrioritySessions
(
nonNegativePrioritySessions
);
if
(
highestPrioritySessions
.
size
()
==
1
)
{
if
(
highestPrioritySessions
.
size
()
==
1
)
{
// Found only one session so deliver message (if it hasn't already been processed because it has message carbons enabled)
// Found only one session so deliver message (if it hasn't already been processed because it has message carbons enabled)
if
(!
shouldCarbonCopyToResource
(
highestPrioritySessions
.
get
(
0
),
packet
,
isPrivate
))
{
if
(!
shouldCarbonCopyToResource
(
highestPrioritySessions
.
get
(
0
),
packet
,
isPrivate
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment