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

1. Fixed memory leak with connections that never generated a session. JM-573

2. Added more log information about invalid hosts.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@3484 b35dd754-fafc-0310-a699-88a17e54d16e
parent 44bda336
...@@ -156,6 +156,8 @@ public abstract class SocketReader implements Runnable { ...@@ -156,6 +156,8 @@ public abstract class SocketReader implements Runnable {
} }
} }
else { else {
// Close and release the created connection
connection.close();
Log.error(LocaleUtils.getLocalizedString("admin.error.connection") Log.error(LocaleUtils.getLocalizedString("admin.error.connection")
+ "\n" + socket.toString()); + "\n" + socket.toString());
} }
...@@ -595,8 +597,8 @@ public abstract class SocketReader implements Runnable { ...@@ -595,8 +597,8 @@ public abstract class SocketReader implements Runnable {
// Close the underlying connection // Close the underlying connection
connection.close(); connection.close();
// Log a warning so that admins can track this cases from the server side // 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: " + Log.warn("Closing session due to incorrect hostname in stream header. Host: " + host +
connection); ". Connection: " + connection);
} }
// Create the correct session based on the sent namespace. At this point the server // Create the correct session based on the sent namespace. At this point the server
......
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