Commit 9d609206 authored by guus's avatar guus

Bugfix: If a client sends </stream:stream>, the server has to reply with...

Bugfix: If a client sends </stream:stream>, the server has to reply with </stream:stream> before it closes the connection. Problem described in http://www.igniterealtime.org/community/thread/27013

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/branches/rsm@9178 b35dd754-fafc-0310-a699-88a17e54d16e
parent 365f32e1
...@@ -142,14 +142,14 @@ public class NIOConnection implements Connection { ...@@ -142,14 +142,14 @@ public class NIOConnection implements Connection {
boolean closedSuccessfully = false; boolean closedSuccessfully = false;
synchronized (this) { synchronized (this) {
if (!isClosed()) { if (!isClosed()) {
if (session != null) {
session.setStatus(Session.STATUS_CLOSED);
}
try { try {
deliverRawText(flashClient ? "</flash:stream>" : "</stream:stream>", false); deliverRawText(flashClient ? "</flash:stream>" : "</stream:stream>", false);
} catch (Exception e) { } catch (Exception e) {
// Ignore // Ignore
} }
if (session != null) {
session.setStatus(Session.STATUS_CLOSED);
}
ioSession.close(); ioSession.close();
closed = true; closed = true;
closedSuccessfully = true; closedSuccessfully = true;
......
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