Commit c2eec308 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Added logging of warning when incorrect hostname of bad namespace is included in stream header.

git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@2997 b35dd754-fafc-0310-a699-88a17e54d16e
parent ff609f6d
......@@ -448,6 +448,9 @@ public abstract class SocketReader implements Runnable {
writer.flush();
// Close the underlying connection
connection.close();
// Log a warning so that admins can track this cases from the server side
Log.warn("Closing session due to incorrect hostname in stream header. Connection: " +
connection);
}
// Create the correct session based on the sent namespace. At this point the server
......@@ -468,6 +471,9 @@ public abstract class SocketReader implements Runnable {
writer.flush();
// Close the underlying connection
connection.close();
// Log a warning so that admins can track this cases from the server side
Log.warn("Closing session due to bad_namespace_prefix in stream header. Connection: " +
connection);
}
}
......
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