Commit 43a1af98 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Log handshake exceptions as debugging information.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@3563 b35dd754-fafc-0310-a699-88a17e54d16e
parent 38e6ea89
......@@ -30,6 +30,7 @@ import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import org.xmpp.packet.*;
import javax.net.ssl.SSLHandshakeException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.InetSocketAddress;
......@@ -311,6 +312,15 @@ public class OutgoingServerSession extends Session {
connection.close();
}
}
catch (SSLHandshakeException e) {
Log.debug("Handshake error while creating secured outgoing session to remote " +
"server: " + hostname + "(DNS lookup: " + realHostname + ":" + realPort +
")", e);
// Close the connection
if (connection != null) {
connection.close();
}
}
catch (Exception e) {
Log.error("Error creating secured outgoing session to remote server: " + hostname +
"(DNS lookup: " + realHostname + ":" + realPort + ")", e);
......
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