Commit 03192ac7 authored by guus's avatar guus

OF-443: Stop sending 1.0-version stream attributes to pre-1.0 servers. This...

OF-443: Stop sending 1.0-version stream attributes to pre-1.0 servers. This appears to reduce issues with federating to domains powered by older domains. Patch by Marcin Cieślak.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@12941 b35dd754-fafc-0310-a699-88a17e54d16e
parent 7d766529
......@@ -122,7 +122,15 @@ public class LocalIncomingServerSession extends LocalSession implements Incoming
openingStream.append(" xmlns=\"jabber:server\"");
openingStream.append(" from=\"").append(serverName).append("\"");
openingStream.append(" id=\"").append(streamID).append("\"");
// OF-443: Not responding with a 1.0 version in the stream header when federating with older
// implementations appears to reduce connection issues with those domains (patch by Marcin Cieślak).
if (serverVersion[0] >= 1) {
openingStream.append(" version=\"1.0\">");
} else {
openingStream.append(">");
}
connection.deliverRawText(openingStream.toString());
if (serverVersion[0] >= 1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment