Commit 3b48fcd3 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Improved logging information.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@3846 b35dd754-fafc-0310-a699-88a17e54d16e
parent c7dc1e70
...@@ -244,12 +244,12 @@ public class OutgoingServerSession extends Session { ...@@ -244,12 +244,12 @@ public class OutgoingServerSession extends Session {
int realPort = port; int realPort = port;
Socket socket = new Socket(); Socket socket = new Socket();
try { try {
Log.debug("OS - Trying to connect to " + hostname + ":" + port);
// Get the real hostname to connect to using DNS lookup of the specified hostname // Get the real hostname to connect to using DNS lookup of the specified hostname
DNSUtil.HostAddress address = DNSUtil.resolveXMPPServerDomain(hostname, port); DNSUtil.HostAddress address = DNSUtil.resolveXMPPServerDomain(hostname, port);
realHostname = address.getHost(); realHostname = address.getHost();
realPort = address.getPort(); realPort = address.getPort();
Log.debug("OS - Trying to connect to " + hostname + ":" + port +
"(DNS lookup: " + realHostname + ":" + realPort + ")");
// Establish a TCP connection to the Receiving Server // Establish a TCP connection to the Receiving Server
socket.connect(new InetSocketAddress(realHostname, realPort), socket.connect(new InetSocketAddress(realHostname, realPort),
RemoteServerManager.getSocketTimeout()); RemoteServerManager.getSocketTimeout());
......
...@@ -139,11 +139,12 @@ class ServerDialback { ...@@ -139,11 +139,12 @@ class ServerDialback {
int realPort = port; int realPort = port;
try { try {
// Establish a TCP connection to the Receiving Server // Establish a TCP connection to the Receiving Server
Log.debug("OS - Trying to connect to " + hostname + ":" + port);
// Get the real hostname to connect to using DNS lookup of the specified hostname // Get the real hostname to connect to using DNS lookup of the specified hostname
DNSUtil.HostAddress address = DNSUtil.resolveXMPPServerDomain(hostname, port); DNSUtil.HostAddress address = DNSUtil.resolveXMPPServerDomain(hostname, port);
realHostname = address.getHost(); realHostname = address.getHost();
realPort = address.getPort(); realPort = address.getPort();
Log.debug("OS - Trying to connect to " + hostname + ":" + port +
"(DNS lookup: " + realHostname + ":" + realPort + ")");
// Connect to the remote server // Connect to the remote server
Socket socket = new Socket(); Socket socket = new Socket();
socket.connect(new InetSocketAddress(realHostname, realPort), socket.connect(new InetSocketAddress(realHostname, realPort),
...@@ -512,7 +513,8 @@ class ServerDialback { ...@@ -512,7 +513,8 @@ class ServerDialback {
XMPPPacketReader reader; XMPPPacketReader reader;
Writer writer = null; Writer writer = null;
// Establish a TCP connection back to the domain name asserted by the Originating Server // Establish a TCP connection back to the domain name asserted by the Originating Server
Log.debug("RS - Trying to connect to Authoritative Server: " + hostname + ":" + port); Log.debug("RS - Trying to connect to Authoritative Server: " + hostname + ":" + port +
"(DNS lookup: " + host + ":" + port + ")");
// Connect to the Authoritative server // Connect to the Authoritative server
Socket socket = new Socket(); Socket socket = new Socket();
socket.connect(new InetSocketAddress(host, port), RemoteServerManager.getSocketTimeout()); socket.connect(new InetSocketAddress(host, port), RemoteServerManager.getSocketTimeout());
......
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