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
2f783daf
Commit
2f783daf
authored
Mar 09, 2015
by
Dave Cridland
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #191 from tevans/OF-888
OF-888: Fix outgoing S2S packet delivery failure
parents
c6dd1ae4
c460bc55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
LocalOutgoingServerSession.java
...software/openfire/session/LocalOutgoingServerSession.java
+9
-0
No files found.
src/java/org/jivesoftware/openfire/session/LocalOutgoingServerSession.java
View file @
2f783daf
...
...
@@ -62,6 +62,7 @@ import org.xmpp.packet.JID;
import
org.xmpp.packet.Message
;
import
org.xmpp.packet.Packet
;
import
org.xmpp.packet.PacketError
;
import
org.xmpp.packet.PacketExtension
;
import
org.xmpp.packet.Presence
;
import
com.jcraft.jzlib.JZlib
;
...
...
@@ -637,6 +638,14 @@ public class LocalOutgoingServerSession extends LocalServerSession implements Ou
private
void
returnErrorToSender
(
Packet
packet
)
{
RoutingTable
routingTable
=
XMPPServer
.
getInstance
().
getRoutingTable
();
try
{
// OF-888 (outgoing S2S failure) Prevent recursion for failed delivery of error response packet
String
el
=
"ext"
;
String
ns
=
getClass
().
getName
();
if
(
packet
.
deleteExtension
(
el
,
ns
))
{
Log
.
warn
(
"Failed to route error to sender; remote server not found. Original packet: "
+
packet
);
return
;
}
packet
.
addExtension
(
new
PacketExtension
(
el
,
ns
));
if
(
packet
instanceof
IQ
)
{
if
(((
IQ
)
packet
).
isResponse
())
{
Log
.
debug
(
"XMPP specs forbid us to respond with an IQ error to: "
+
packet
.
toXML
());
...
...
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