1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-12-22 20:47:57 +01:00

Add log statements around socket.connect() of XMPPTCPConnection

This commit is contained in:
Florian Schmaus 2015-01-04 16:03:46 +01:00
parent a24c813ed1
commit c770b12348

View file

@ -519,12 +519,14 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
else {
socket = config.getSocketFactory().createSocket();
}
LOGGER.finer("Trying to establish TCP connection to " + host + " at port " + port);
try {
socket.connect(new InetSocketAddress(host, port), config.getConnectTimeout());
} catch (Exception e) {
exception = e;
}
if (exception == null) {
LOGGER.finer("Established TCP connection to " + host + " at port " + port);
// We found a host to connect to, break here
this.host = host;
this.port = port;